Re: i18n issues on NetBSD

2009-08-11 Thread Ludovic Courtès
Greg Troxel writes: > scheme@(guile-user)> (setlocale LC_ALL "does-not-exist") > "C" This looks wrong to me: Upon successful completion, setlocale() shall return the string associated with the specified category for the new locale. Otherwise, setlocale() shall return a null pointer and

Re: i18n issues on NetBSD

2009-08-11 Thread Greg Troxel
scheme@(guile-user)> (setlocale LC_ALL "does-not-exist") "C" list gdt 8 ~ > cat l.c #include #include #include #include #include int main (int argc, char *argv[]) { char *s; s = setlocale (LC_ALL, "C"); assert (s != NULL); printf ("DAY_1: %s\n", nl_langinfo (DAY_1)); s =

i18n issues on NetBSD

2009-08-11 Thread Ludovic Courtès
Greg Troxel writes: > scheme@(guile-user)> (make-locale LC_ALL "does-not-exist") > # And `(setlocale LC_ALL "does-not-exist")'? It looks like setlocale(3) doesn't behave as specified by POSIX (http://www.opengroup.org/onlinepubs/9699919799/functions/setlocale.html). > scheme@(guile-user)> (map