This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
PATCH: [perl #115808]: POSIX::setlocale returns bizarre value on failure
authorKarl Williamson <public@khwilliamson.com>
Mon, 8 Jul 2013 04:42:43 +0000 (22:42 -0600)
committerKarl Williamson <public@khwilliamson.com>
Mon, 8 Jul 2013 15:13:49 +0000 (09:13 -0600)
commitfbd840dfc9b563b320e11bc4465883053a0487f5
treeb95245340c4805d56643c086c8b3841809ebf513
parente48e70eb25d869b2aaf809e37344a94cdfd5902d
PATCH: [perl #115808]: POSIX::setlocale returns bizarre value on failure

It turns out that this bug is caused by a more general one, covered by
[perl #118693].  But in the meantime, this commit fixes the problem for
setlocale(), and makes the code slightly cleaner besides.
ext/POSIX/POSIX.xs
lib/locale.t