Re: Is there timezone data for any Indian cities such as Mumbai, Dehli, c.?

2012-08-27 Thread Jonathan Leffler
Chipping in very late on this discussion: Ted Byers r.ted.by...@gmail.com on Sun, 19 Aug 2012 01:58:23 -0400 wrote: But there remains the question of possibly incompatible timezone names as the author of the location packeg, that gives timezone as a function of latitude and longitude wrote in

Windows Locales

2012-08-27 Thread David E. Wheeler
DateTimers, I got a curious test failure on Windows: http://ppm4.activestate.com/MSWin32-x86/5.14/1400/D/DW/DWHEELER/App-Sqitch-0.911.d/log-20120824T022242.txt The error was: Invalid locale name or id: English_United States.1252 The code in question that sets the locale is:

Re: Windows Locales

2012-08-27 Thread Dave Rolsky
On Mon, 27 Aug 2012, David E. Wheeler wrote: The code in question that sets the locale is: $dt-set( locale = POSIX::setlocale( POSIX::LC_TIME() ) ); I'm not sure why you think this would work on Linux either. On my system here's what I get: perl -MPOSIX -E 'say

Re: Windows Locales

2012-08-27 Thread David E. Wheeler
On Aug 27, 2012, at 2:29 PM, Dave Rolsky wrote: I'm not sure why you think this would work on Linux either. On my system here's what I get: perl -MPOSIX -E 'say POSIX::setlocale(POSIX::LC_TIME())' en_US.UTF-8 Yeah, me too. That locale will not make DateTime::Locale happy either.

Re: Windows Locales

2012-08-27 Thread Dave Rolsky
On Mon, 27 Aug 2012, David E. Wheeler wrote: That locale will not make DateTime::Locale happy either. Seems okay with it: perl -MDateTime -MPOSIX -E 'my $dt = DateTime-now; $dt-set(locale = POSIX::setlocale( POSIX::LC_TIME() ) ); say $dt-locale'

Re: Windows Locales

2012-08-27 Thread David E. Wheeler
On Aug 27, 2012, at 3:33 PM, Dave Rolsky wrote: Heh, go figure. I think I wrote that code, but forgot about it. It strips off any trailing character set in the locale code. You were way ahead of yourself, yo. :-) I found Win32::Locale, which seems to do what I need it to. Ah, cool.

Re: Windows Locales

2012-08-27 Thread Sean M. Burke
On 08/27/2012 04:38 PM, David E. Wheeler wrote: Yeah. It could probably use an update. I doubt anyone is maintaining it. Is that right, Sean? Does Win32::Locale need care and feeding? Basically: yes, and... Grepping my mailbox, I see three messages in November 2006[!!!] where: * Bernie

Re: Windows Locales

2012-08-27 Thread David E. Wheeler
On Aug 27, 2012, at 4:11 PM, Sean M. Burke wrote: Bernie, are you interested? (if so, what's your PAUSE ID?) David (Wheeler), are you interested? (if so, what's your PAUSE ID?) No, I have no access to Windows at all. Thanks. David