From owner-freebsd-hackers Sun Aug 11 03:49:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id DAA04663 for hackers-outgoing; Sun, 11 Aug 1996 03:49:45 -0700 (PDT) Received: from oyoyo.cs.titech.ac.jp (oyoyo.cs.titech.ac.jp [131.112.18.5]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id DAA04646 for ; Sun, 11 Aug 1996 03:49:42 -0700 (PDT) Received: by oyoyo.cs.titech.ac.jp (8.6.12+2.4W/3.2W-titmx-2.0g); Sun, 11 Aug 1996 19:49:17 +0900 Message-Id: <199608111049.TAA14107@oyoyo.cs.titech.ac.jp> To: =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) Cc: hackers@FreeBSD.ORG, hidekazu@cs.titech.ac.jp Subject: Re: Wrong locale(japanese) ?? In-reply-to: Your message of "Fri, 09 Aug 1996 19:08:59 +0400." <199608091509.TAA00432@nagual.ru> Date: Sun, 11 Aug 1996 19:49:16 +0900 From: Hidekazu Kuroki Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In message <199608091509.TAA00432@nagual.ru>, =?KOI8-R?Q?=E1=CE=C4=D2=C5=CA_=FE=C5=D2=CE=CF=D7?= (Andrey A. Chernov) wrote: > > > When the LANG variable is "ja_JP.EUC", this program return "error!". > > > > But the LANG varieble is other(except "ja*" or "Ja*"), return > > > > "success!". > > > > Why ? > > > > Is the /usr/share/locale/ja_JP.EUC/LC_CTYPE file wrong ? > > EUC encoding not supported unless you specify -lxpg4 > There is no known proper way yet to support EUC in userland programs. > Very thanks!! That program compiled with -lxpg4 return "success", when LANG = "ja_JP.EUC". But, why the EUC encoding isn't supported in the library libc ?? All programs which use a setlocale function without the -lxpg4 link option will cause Error "Cannot set locale.". Do FreeBSD "japanese" packages which need to link a shared libc library or ports without the -lxpg4 link option cause any problem ?? > Andrey A. Chernov > > http://www.nagual.ru/~ache/ > \\\\\\ ( @ @ ) /-------------------oOOo---(_)---oOOo-------------------\ | | | Tokyo Institute of Technology | | Department of Science and Engneering Lab. Yonezaki | | Hidekazu Kuroki (E-Mail : hidekazu@cs.titech.ac.jp) | | .oooO Oooo. | \_____________________( )___( )_____________________/ \ ( ) / \_) (_/