Author eric.smith
Recipients AndiDog_old, BreamoreBoy, belopolsky, eric.smith, ezio.melotti, terry.reedy, vstinner
Date 2015-09-25.01:05:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1443143109.54.0.202397357299.issue8304@psf.upfronthosting.co.za>
In-reply-to
Content
The problem is definitely that:
format = PyUnicode_EncodeLocale(format_arg, "surrogateescape");
fails on Windows.

Windows is using strftime, not wcsftime. It's not using wcsftime because of issue 10653.

If I force Windows to use wcsftime, this particular example works:
>>> time.strftime("%d\u200F%A", time.gmtime())
'25\u200fFriday'

I haven't looked at issue 10653 enough to understand if it's still a problem with the new Visual C++. Maybe it is: I only tested with my default US locale.
History
Date User Action Args
2015-09-25 01:05:09eric.smithsetrecipients: + eric.smith, terry.reedy, belopolsky, vstinner, ezio.melotti, AndiDog_old, BreamoreBoy
2015-09-25 01:05:09eric.smithsetmessageid: <1443143109.54.0.202397357299.issue8304@psf.upfronthosting.co.za>
2015-09-25 01:05:09eric.smithlinkissue8304 messages
2015-09-25 01:05:08eric.smithcreate