Author terry.reedy
Recipients AndiDog_old, BreamoreBoy, eric.smith, ezio.melotti, terry.reedy, vstinner
Date 2014-08-30.02:14:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I verified Marks 3.4.1 result with Idle.

It strikes me as a bug that a function that maps a unicode format string to a unicode string with interpolations added should ever encode the format to bytes, lets alone using using an encoding that fails or loses information.  It is especially weird given that % formatting does not even work (at present) for bytes.

It seems to me that strftime should never encode the non-special parts of the format text.  Instead, it could split the format (re.split) into a list of alternatine '%x' pairs and running text segments, replace the '%x' entries with the proper entries, and return the list joined back into a string. Some replacements would be locale dependent, other not.

(Just wondering, are the locate names of days and months bytes restricted to ascii or unrestricted unicode using native characters?)
Date User Action Args
2014-08-30 02:14:42terry.reedysetrecipients: + terry.reedy, vstinner, eric.smith, ezio.melotti, AndiDog_old, BreamoreBoy
2014-08-30 02:14:42terry.reedysetmessageid: <>
2014-08-30 02:14:42terry.reedylinkissue8304 messages
2014-08-30 02:14:41terry.reedycreate