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 <>
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())

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.
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: <>
2015-09-25 01:05:09eric.smithlinkissue8304 messages
2015-09-25 01:05:08eric.smithcreate