locale.c: Handle case where LC_ALL isn't "all"
authorKarl Williamson <public@khwilliamson.com>
Mon, 17 Feb 2014 05:06:03 +0000 (22:06 -0700)
committerKarl Williamson <public@khwilliamson.com>
Mon, 17 Feb 2014 05:47:10 +0000 (22:47 -0700)
commit7cd8b56846670e577e1f62479eab8f38fb11da14
tree68ec944a5112738dee4441c3c01b37fb41e6d334
parent0334097d5ecdb8506c1fc85a54a43b1fa5b84bf4
locale.c: Handle case where LC_ALL isn't "all"

Setting the LC_ALL locale category on NetBSD does not necessarily change
all the categories to the requested locale.  Sometimes the LC_COLLATE
category is set to POSIX.  I presume that is because collation has not
been defined for the given locale, so it uses a basic locale instead.
The code in locale.c that does locale initialization for the Perl
program at start-up, depended on LC_ALL setting all categories to the
same locale.
locale.c