summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2018-03-08 13:00:40 -0700
committerKarl Williamson <khw@cpan.org>2018-03-12 10:17:14 -0600
commit8d72e74e3dc5017c5a3fade48e0c74109c297ebc (patch)
treed8c985cc3709c43766c765c199b2a219a6fd2410 /ext
parent472be41b7bb1dab634c9b2b1655a206eea17f7d6 (diff)
downloadperl-8d72e74e3dc5017c5a3fade48e0c74109c297ebc.tar.gz
Langinfo: Implement CODESET on Windows
This applies to I18N::Langinfo, and the API function Perl_langinfo. Windows doesn't have nl_langinfo, so an emulation is used. It turns out that it is easy to emulate the behavior for the CODESET item on Windows, as that vendor has kept things consistent.
Diffstat (limited to 'ext')
-rw-r--r--ext/I18N-Langinfo/Langinfo.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/I18N-Langinfo/Langinfo.pm b/ext/I18N-Langinfo/Langinfo.pm
index bcc15274c4..e9e84d28c2 100644
--- a/ext/I18N-Langinfo/Langinfo.pm
+++ b/ext/I18N-Langinfo/Langinfo.pm
@@ -168,12 +168,15 @@ glitches. These are the items that could be different:
=over
-=item C<CODESET>
-
=item C<ERA>
Unimplemented, so returns C<"">.
+=item C<CODESET>
+
+Unimplemented, except on Windows, due to the vagaries of vendor locale names,
+returning C<""> on non-Windows.
+
=item C<YESEXPR>
=item C<YESSTR>