From owner-freebsd-bugs Wed Dec 25 20:10:05 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA05689 for bugs-outgoing; Wed, 25 Dec 1996 20:10:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id UAA05683; Wed, 25 Dec 1996 20:10:02 -0800 (PST) Resent-Date: Wed, 25 Dec 1996 20:10:02 -0800 (PST) Resent-Message-Id: <199612260410.UAA05683@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, akiyama@kme.mei.co.jp Received: from vcgate3.mei.co.jp (vcgate3.mei.co.jp [202.32.14.53]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id UAA05484 for ; Wed, 25 Dec 1996 20:03:44 -0800 (PST) Received: by vcgate3.mei.co.jp (5.65mei1.2g/5.9:4.9:vcgate0:961204) id AA19564; Thu, 26 Dec 96 13:02:54 +0900 Received: by vcmei.vanc.mei.co.jp (5.65mei1.1/5.9:4.9:vcmei:961224) id AA24184; Thu, 26 Dec 96 13:03:15 +0900 Received: by kmegate.kme.mei.co.jp (4.1/5.5:4.6:kmegate:961205) id AA22725; Thu, 26 Dec 96 13:03:05 JST Message-Id: <9612260403.AA22725@kmegate.kme.mei.co.jp> Date: Thu, 26 Dec 96 13:03:05 JST From: akiyama@kme.mei.co.jp Reply-To: akiyama@kme.mei.co.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: misc/2283: setlocale() in libxpg4 always returns NULL with ja_JP.EUC locale. Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 2283 >Category: misc >Synopsis: setlocale() in libxpg4 always returns NULL with ja_JP.EUC locale. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Dec 25 20:10:01 PST 1996 >Last-Modified: >Originator: Shunsuke Akiyama >Organization: Kyushu Matsushita Electric Co., LTD. >Release: FreeBSD 2.2-BETA_A i386 >Environment: All FreeBSD 2.2-BETA systems using setlocale() with ja_JP.EUC locale. >Description: setlocale() in xpg4 library always returns NULL, if locale parameter specified with ja_JP.EUC. >How-To-Repeat: Attached sample program compiled as % cc -o locale -g locale.c -lxpg4 Result: % ./locale setlocale() returns NULL But compiled with 2.2-ALPHA xpg4 library, this program returns: % ./locale setlocale() returns "C/ja_JP.EUC/C/C/C" I've tried to another locage categories, but I got same results. #include #include #include main() { char *p; p = setlocale(LC_ALL, "ja_JP.EUC"); if (p == NULL) { printf("setlocale() returns NULL\n"); } else { printf("setlocale() returns \"%s\"\n", p); } exit(0); } >Fix: N/A >Audit-Trail: >Unformatted: