From d646bffec1670f95f61ba05ca3da10a8deb21664 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Tue, 21 Jan 2014 16:01:48 -0700 Subject: [PATCH 1/1] t/loc_tools.pl: Add some locale finding for Win32 This is based on the documentation in http://msdn.microsoft.com/en-us/library/hzz3tw78.aspx and linked-to pages. We try out new locale combinations to see if they are found. --- t/loc_tools.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/loc_tools.pl b/t/loc_tools.pl index 98af329..45377a0 100644 --- a/t/loc_tools.pl +++ b/t/loc_tools.pl @@ -40,12 +40,16 @@ sub _decode_encodings { } push @enc, $_; push @enc, "$_.UTF-8"; + push @enc, "$_.65001"; # Windows UTF-8 + push @enc, "$_.ACP"; # Windows ANSI code page + push @enc, "$_.OCP"; # Windows OEM code page } } if ($^O eq 'os390') { push @enc, qw(IBM-037 IBM-819 IBM-1047); } push @enc, "UTF-8"; + push @enc, "65001"; # Windows UTF-8 return @enc; } -- 1.8.3.1