Date: Thu, 20 Mar 1997 15:26:27 +0900 (KST) From: Choi Jun Ho <choi.junho@jazz.snu.ac.kr> To: freebsd-questions@freebsd.org Subject: X11 and C locale in 2.2-RELEASE? Message-ID: <199703200626.PAA23438@jazz.snu.ac.kr>
next in thread | raw e-mail | index | archive | help
After installation of 2.2R, I noticed some locale problem. It is about locales in C and X11... The following output is on my machine(2.2, PPro, 64M) --- moderato:~% env LANG=C perl ^D moderato:~% env LANG=fr_FR.ISO_8859-1 perl ^D moderato:~% env LANG=ko_KR.EUC perl warning: setlocale(LC_CTYPE, "") failed. warning: LC_ALL = "(null)", LC_CTYPE = "(null)", LANG = "ko_KR.EUC", warning: falling back to the "C" locale. ^D moderato:~% env LANG=ja_JP.EUC perl warning: setlocale(LC_CTYPE, "") failed. warning: LC_ALL = "(null)", LC_CTYPE = "(null)", LANG = "ja_JP.EUC", warning: falling back to the "C" locale. ^D moderato:~% env LANG=ru_SU.KOI8-R perl ^D moderato:~% --- Is it not supporting EUC locales? ko_KR.EUC and ja_JP.EUC is EUC-based, other locales not. in X11, the similar problem occurred: --- moderato:~% env LANG=C xterm ^C moderato:~% env LANG=fr_FR.ISO_8859-1 xterm ^C moderato:~% env LANG=ja_JP.EUC xterm Warning: locale not supported by C library, locale unchanged ^C moderato:~% env LANG=ko_KR.EUC xterm Warning: locale not supported by C library, locale unchanged ^C moderato:~% env LANG=ru_SU.KOI8-R xterm ^C --- Of course, recompiling X11 with -DX_LOCALE shows no warning message about EUC locales(some of locale routine is built-in in Xlib), but original distrubition didn't... in setlocale(3) manpage, the following thing is written: --- BUGS The current implementation supports only the "C" and "POSIX" locales for all but the LC_COLLATE, LC_CTYPE, and LC_TIME categories. --- I think it means FreeBSD is supporting EUC locales LC_COLLATE, LC_CTYPE, and LC_CTIME... is there a way to fix it? I am developing some locale- dependent program(in X11), so it is important to do this... -- --------------------------------------------------------------^^--- Judgement Uninfected Naked Kind & Executive Ranger - J U N K E R from KONAMI 1990 "SD-Snatcher" in MSX2 Choi Jun Ho <junker@jazz.snu.ac.kr> http://jazz.snu.ac.kr/~junker Distributed Computing System Lab, CS Dept., Seoul National Univ.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703200626.PAA23438>