Subject: -current setlocale() problems
To: None <current-users@netbsd.org>
From: Geoff Wing <mason@primenet.com.au>
List: current-users
Date: 12/24/2000 03:40:35
Heyla,
during -current setlocale() changes (24th Dec):

$ cat test.c
#include <locale.h>
main()
{
        printf("%s\n", setlocale(LC_ALL, ""));
        printf("%s\n", setlocale(LC_ALL, NULL));
}
$ ./test
C
C
$ LC_ALL=foobar ./test
C/foobar/C/C/C                                                                                      C/foobar/C/C/C
$

OK, now the first line should be "(null)" and the second should be "C",
right?  What is this stuff being spewed out?  Why did the locale change
succeed?

Regards,
-- 
Geoff Wing : <gcw@pobox.com>
Rxvt Stuff : <gcw@rxvt.org>
Zsh Stuff  : <gcw@zsh.org>