I agree original Contents/Resources/bin/inkscape cannot get locale in Japanese.
The reason of it, I think, /usr/share/locale/locale.alias in MacOSX has some unexpected values.
japanese ja_JP.eucJP
japanese.euc ja_JP.eucJP
ja_JP ja_JP.eucJP
ja_JP.ujis ja_JP.eucJP
japanese.sjis ja_JP.SJIS
korean ko_KR.eucKR
korean.euc ko_KR.eucKR
ko_KR ko_KR.eucKR
The original shell script try to get locale as follows:
tail -n1 | sed 's/¥./ /' | awk '{print $2}
But it fails to get proper value 'ja_JP'. It got wrong string 'sjis' on my Mac,
In Japanese, grep & tail brings a line that has unexpected 'dot', and 'sed' works in bad timing.
I have tried to repair it, and it is the same sentence as suv's get_LANG.sh
Inkscape 0.48
MacOSX 10.6.4
I agree original Contents/ Resources/ bin/inkscape cannot get locale in Japanese. locale/ locale. alias in MacOSX has some unexpected values.
The reason of it, I think, /usr/share/
japanese ja_JP.eucJP
japanese.euc ja_JP.eucJP
ja_JP ja_JP.eucJP
ja_JP.ujis ja_JP.eucJP
japanese.sjis ja_JP.SJIS
korean ko_KR.eucKR
korean.euc ko_KR.eucKR
ko_KR ko_KR.eucKR
no_NO nb_NO.ISO-8859-1
no_NO.ISO-8859-1 nb_NO.ISO-8859-1
The original shell script try to get locale as follows:
tail -n1 | sed 's/¥./ /' | awk '{print $2}
But it fails to get proper value 'ja_JP'. It got wrong string 'sjis' on my Mac,
In Japanese, grep & tail brings a line that has unexpected 'dot', and 'sed' works in bad timing.
I have tried to repair it, and it is the same sentence as suv's get_LANG.sh
tail -n1 | awk '{print $2}' | sed 's/¥./ /' | awk '{print $1}'
It works well without '/usr/X11/ share/X11/ locale/ locale. alias'.
ps.
The result of running get_LANG was as follows:
Setting Language: ja_JP.UTF-8