This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Emulate POSIX locale setting on Windows
authorKarl Williamson <public@khwilliamson.com>
Sat, 15 Feb 2014 19:58:07 +0000 (12:58 -0700)
committerKarl Williamson <public@khwilliamson.com>
Sat, 15 Feb 2014 22:50:35 +0000 (15:50 -0700)
commitb385bb4ddcb252e69a1044d702646741e2e489fb
treeb8e382f127fa164b5d29c6833e2fcf534e28377d
parent97dffe50643dd18f87b33b7ec6f8b55bbfd1fd74
Emulate POSIX locale setting on Windows

Locale initialization and setting on Windows haven't been as
described in perllocale for setting locales to "".  This is because that
tells Windows to use the system default locale, as set through the
Control Panel, but on POSIX systems, it means to look at various
environment variables.

This commit creates a wrapper for setlocale, used only on Windows, that
looks for the appropriate environment variables when called with a ""
input locale.  If none are found, it continues to use the system default
locale.
embed.fnc
embed.h
ext/POSIX/POSIX.xs
ext/POSIX/lib/POSIX.pm
locale.c
perl.h
pod/perldelta.pod
pod/perllocale.pod
proto.h