This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author izbyshev
Recipients belopolsky, izbyshev, p-ganssle, pitrou, serhiy.storchaka, taleinat, vstinner
Date 2018-08-30.23:10:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1535670649.33.0.56676864532.issue34481@psf.upfronthosting.co.za>
In-reply-to
Content
> if we can't make assertions about the behavior of strftime outputs, I think it makes it hard to prevent regressions.

Ironically, some of the changes we may have to make to fix time.strftime() inconsistencies may appear like regressions to some users. For example, regarding dropping wcsftime() on all platforms, 'man strftime' on macOS contains the following warning in BUGS section: "The strftime() function does not correctly handle multibyte characters in the format argument.". (I'm not sure what "incorrect handling" means here). That's not to discourage you, just to point out that we should be extra careful at this point when there might be users relying on every variety of the current behavior. And that's also why I don't want to mix the fix for C vs. Python issue (low risk) with changes in time.strftime() (high risk).

Also, while I certainly agree with "the outsized effort" point, it seems that your PR goes far beyond supporting surrogates because falling back to escaping allows one to bypass checks in wcsftime()/strftime() and round-trip any code point regardless of the current locale.
History
Date User Action Args
2018-08-30 23:10:49izbyshevsetrecipients: + izbyshev, belopolsky, pitrou, vstinner, taleinat, serhiy.storchaka, p-ganssle
2018-08-30 23:10:49izbyshevsetmessageid: <1535670649.33.0.56676864532.issue34481@psf.upfronthosting.co.za>
2018-08-30 23:10:49izbyshevlinkissue34481 messages
2018-08-30 23:10:49izbyshevcreate