Author ocean-city
Recipients belopolsky, brian.curtin, ocean-city
Date 2010-12-09.10:54:38
SpamBayes Score 3.28822e-06
Marked as misclassified No
Message-id <1291892080.25.0.598883773091.issue10653@psf.upfronthosting.co.za>
In-reply-to
Content
> 1.  Decoding the output of wcsftime().  Python expects mbcs (which
> I believe is an UTF16-like wide char encoding) while Windows
> apparently puts cp932 there in your locale.  I don't have expertise
> to address this issue.

No, mbcs is not wide character sets (wchar_t*) but ANSI character sets
(char*). In my environment, mbcs == cp932. And python expects UTF-16. 

> 2. strptime() cannot parse strftime() output when strftime('%Z') is
> different from time.tzname[dst]. (snip)

I attached test program to test behavior of strftime and wcsftime
on locale. On VC6, strftime doesn't depend on locale, wheres
wcsftime changed the value depends on locale. (I tested only "C"
locale and "System" locale because I could not find other
locales working on my environment, so )

If strftime doesn't depend on locale and equals to tzname
for every locale, maybe strftime is preferred on windows.

# Can somebody test this on VS9? And other locales?
History
Date User Action Args
2010-12-09 10:54:40ocean-citysetrecipients: + ocean-city, belopolsky, brian.curtin
2010-12-09 10:54:40ocean-citysetmessageid: <1291892080.25.0.598883773091.issue10653@psf.upfronthosting.co.za>
2010-12-09 10:54:38ocean-citylinkissue10653 messages
2010-12-09 10:54:38ocean-citycreate