Allow 'use locale' on systems without locales.
authorKarl Williamson <public@khwilliamson.com>
Wed, 22 Jan 2014 21:23:26 +0000 (14:23 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 24 Jan 2014 01:27:40 +0000 (18:27 -0700)
commita02ae656c54414fd3b04bf8cc53393e5c2438083
tree8ed151d8a1c12394812104dd5128346eaeb9c4e3
parent3f7bac22cc5a95125087775838d75501643ff1d0
Allow 'use locale' on systems without locales.

Instead of throwing an error, just go ahead and do the import.
This will tell Perl internally to use the current underlying locale,
which should be the C locale.  Attempts to change the locale will fail.

This differs slightly from Brian Fraser's patch, in that his didn't
touch $^H, thus 'use locale' was a no-op.  He has told me to apply this
one, which does affect $^H.  The advantage here is that now programs
that are run on platforms with and without locales will behave
similarly, and should run identically if the locale is not switched from
the default.
lib/locale.pm
pod/perldelta.pod