Date: Thu, 26 Dec 96 13:03:05 JST From: akiyama@kme.mei.co.jp To: FreeBSD-gnats-submit@freebsd.org Subject: misc/2283: setlocale() in libxpg4 always returns NULL with ja_JP.EUC locale. Message-ID: <9612260403.AA22725@kmegate.kme.mei.co.jp> Resent-Message-ID: <199612260410.UAA05683@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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 <stdio.h>
#include <stdlib.h>
#include <locale.h>
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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9612260403.AA22725>
