From owner-freebsd-questions Wed Mar 19 22:32:18 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id WAA28895 for questions-outgoing; Wed, 19 Mar 1997 22:32:18 -0800 (PST) Received: from jazz.snu.ac.kr (jazz.snu.ac.kr [147.46.102.36]) by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA28890 for ; Wed, 19 Mar 1997 22:32:04 -0800 (PST) Received: (from junker@localhost) by jazz.snu.ac.kr (8.8.5/8.8.4-procmail) id PAA23438 for freebsd-questions@freebsd.org; Thu, 20 Mar 1997 15:26:27 +0900 (KST) From: Choi Jun Ho Message-Id: <199703200626.PAA23438@jazz.snu.ac.kr> Subject: X11 and C locale in 2.2-RELEASE? To: freebsd-questions@freebsd.org Date: Thu, 20 Mar 1997 15:26:27 +0900 (KST) MIME-Version: 1.0 Content-Type: text/plain; charset=EUC-KR Content-Transfer-Encoding: 8bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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 http://jazz.snu.ac.kr/~junker Distributed Computing System Lab, CS Dept., Seoul National Univ.