Mike FABIAN wrote:
> [EMAIL PROTECTED] さんは書きました:
>
>>> But I see only mojibake in the menus. Is there anything I need
>>> to setup especially?
>>
>> What does this, 'mojibake', mean? If you rpm-install, you don't have to
>> do anything else. If you install other way, you have to make sure
>> 'ja.gmo' (if you are using japanese input, for example) is in
>> '/usr/share/locales/LC_MESSAGES' .
>
> I found a workaround for the "mojibake in the menus" problem:
>
> LANG=ja_JP LC_CTYPE=ja_JP LC_MESSAGES=ja_JP lyx-cjk
> example-japanese-cjk-latex.lyx
>
> show mojibake in the menus *but*
>
> LC_ALL=ja_JP lyx-cjk example-japanese-cjk-latex.lyx
>
> shows correct Japanese in the menus. Same for Korean, setting LC_ALL
> removes the problem. That's strange.
It's caused by this nasty kludge in CG's xforms patch:
+/* font_loading */
+
+extern int
+use_fontset()
+{
+ char * loc = setlocale(LC_ALL, "");
+
+ if (!strcmp(loc, "ko_KR") || !strcmp(loc, "ko_KR.eucKR") ||
+ !strcmp(loc, "korean") || !strcmp(loc, "korean_euc") ||
+ !strcmp(loc, "ko_KR.euc") || !strcmp(loc, "ko_KR.euckr") ||
+ !strcmp(loc, "ko") || !strcmp(loc, "ko_KR.EUC") ||
+ !strcmp(loc, "ja_JP.eucJP") || !strcmp(loc, "ja_JP") ||
+ !strcmp(loc, "japanese") || !strcmp(loc, "japanese.euc") ||
+ !strcmp(loc, "ja_JP.ujis") || !strcmp(loc, "ja_JP.SJIS") ||
+ !strcmp(loc, "japanese.sjis") || !strcmp(loc, "zh") ||
+ !strcmp(loc, "zh_CN") || !strcmp(loc, "zh_CN.eucCN") ||
+ !strcmp(loc, "zh_CN.euc") || !strcmp(loc, "zh_CN.Big5") ||
+ !strcmp(loc, "zh_CN.EUC") || !strcmp(loc, "zh_CN.big5") ||
+ !strcmp(loc, "zh_CN.gbk") || !strcmp(loc, "zh_TW") ||
+ !strcmp(loc, "zh_TW.big5") || !strcmp(loc, "zh_TW.Big5") ||
+ !strcmp(loc, "zh_HK") || !strcmp(loc, "zh_HK.big5") ||
+ !strcmp(loc, "zh_CN.GB18030") || !strcmp(loc, "zh_CN.gb18030")
||
+ !strcmp(loc, "zh_HK.Big5") || !strcmp(loc, "zh_TW.eucTW") )
+ return 1;
+
+ else return 0;
+}
The real solution is to pass -use-fontset to flinitialize, but CG wanted
this thing out of the door and found that doing things the 'right way'
caused a crash that he didn't have time to track down.
HTH,
--
Angus