Skip Menu |

This queue is for tickets about the File-Glob-Windows CPAN distribution.

Report information
The Basics
Id: 49514
Status: resolved
Worked: 15 min
Priority: 0/
Queue: File-Glob-Windows

People
Owner: Nobody in particular
Requestors:
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.1.3
Fixed in: (no value)



Subject: sub File::Glob::Windows::getCodePage_POSIX
My perl came without Win32::TieRegistry or Win32::API, and since every perl comes with POSIX, I made this change to lib/File/Glob/Windows.pm sub getCodePage{ return getCodePage_POSIX; } sub getCodePage_POSIX { require POSIX; my $v = POSIX::setlocale( &POSIX::LC_CTYPE ); #~ LC_TYPE returns #~ English_United States.1252 #~ which matches ...Control/Nls/CodePage #~ (default)=(value not set) #~ ACP=1252 #~ OEMCP=437 return "cp$1" if defined($v) and $v=~/(\d+)$/; return; } all tests passed after this Thank you
Now I've upload 0.1.4, including submitted code. Thank you.