[OpenIndiana-discuss] Gnome applications locale bug
cpforum
cpforum at orange.fr
Fri Jun 3 13:29:16 UTC 2016
Gnome applications but one (keepassx) are not localized.
env and locale are :
$ env
...
GDM_KEYBOARD_LAYOUT=fr oss_latin9
GDM_LANG=fr_FR.UTF-8
GDMSESSION=gnome
LANG=fr_FR.UTF-8
bash $ locale
LANG=fr_FR.UTF-8
LC_CTYPE="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_COLLATE="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES="fr_FR.UTF-8"
LC_ALL=
If I trace a gnome application Evince for example I found the problem
sysconfig(_CONFIG_PAGESIZE) = 4096
open("/usr/lib/locale//fr_FR.UTF-8/LC_CTYPE/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x080473B8) = 0
mmap(0x00000000, 94904, PROT_READ, MAP_PRIVATE, 3, 0) = 0xFD597000
close(3) = 0
mmap(0x00010000, 131072, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFD570000
munmap(0xFD597000, 94904) = 0
open("/usr/lib/locale//fr_FR.UTF-8/LC_NUMERIC/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x080473D8) = 0
read(3, " ,\nC2A0\n 3\n", 7) = 7
close(3) = 0
open("/usr/lib/locale//fr_FR.UTF-8/LC_TIME/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x080473D8) = 0
read(3, " j a n v .\n fC3A9 v r .".., 319) = 319
close(3) = 0
open("/usr/lib/locale//fr_FR.UTF-8/LC_COLLATE/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x08047418) = 0
mmap(0x00000000, 75408, PROT_READ, MAP_PRIVATE, 3, 0) = 0xFD59C000
close(3) = 0
open("/usr/lib/locale//fr_FR.UTF-8/LC_MONETARY/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x080473C8) = 0
read(3, " E U R \nE282AC\n ,\nC2".., 47) = 47
close(3) = 0
open("/usr/lib/locale//fr_FR.UTF-8/LC_MESSAGES/LCL_DATA", O_RDONLY) = 3
fstat(3, 0x080473D8) = 0
read(3, " ^ ( ( [ o O ] ( [ u U ]".., 82) = 82
close(3) = 0
open("/usr/share/locale/fr_FR.UTF-8/LC_MESSAGES/evince.mo", O_RDONLY) Err#2 ENOENT <<<<< Here is the bug
Unfortunatly there is no /usr/share/locale/fr_FR.UTF-8 directory. The name is just /usr/share/locale/fr and it's the same for all locale.
I tried the following workaround
cd /usr/share/local
ln -s fr /fr_FR.UTF-8
Then all Gnome applications become localized.
I think the workaround is not the good solution
The question is where fr_FR.UTF-8 come from :
- env variable ?
- gnome conf file ?
- gnome property ?
- ?
Any idea ?
More information about the openindiana-discuss
mailing list