From owner-freebsd-hackers Thu Aug 8 17:29:17 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id RAA27287 for hackers-outgoing; Thu, 8 Aug 1996 17:29:17 -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 RAA27278 for ; Thu, 8 Aug 1996 17:29:14 -0700 (PDT) Received: by oyoyo.cs.titech.ac.jp (8.6.12+2.4W/3.2W-titmx-2.0g); Fri, 9 Aug 1996 09:29:11 +0900 Message-Id: <199608090029.JAA09284@oyoyo.cs.titech.ac.jp> To: hackers@FreeBSD.ORG cc: hidekazu@cs.titech.ac.jp Subject: Wrong locale(japanese) ?? Date: Fri, 09 Aug 1996 09:29:10 +0900 From: Hidekazu Kuroki Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Hi, I am Hidekazu Kuroki, and a Japanese FreeBSD user. I find a problem. My system is the 2.2-960801-SNAP. I try to compile and run a following simple program, ------------------------------------ #include #include main() { if (!setlocale(LC_CTYPE,"")) printf("error!\n"); else printf("success!\n"); } ------------------------------------ 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 ? thanks \\\\\\ ( @ @ ) /-------------------oOOo---(_)---oOOo-------------------\ | | | Tokyo Institute of Technology | | Department of Science and Engneering Lab. Yonezaki | | Hidekazu Kuroki (E-Mail : hidekazu@cs.titech.ac.jp) | | .oooO Oooo. | \_____________________( )___( )_____________________/ \ ( ) / \_) (_/