GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — gh-52551: Use wcsftime() to implement time.strftime() on Windows by serhiy-storchaka · Pull Request #125658 · python/cpython Conversation
|
| #ifdef MS_WINDOWS | ||
| /* wcsftime() doesn't format correctly time zones, see issue #10653 */ | ||
| # undef HAVE_WCSFTIME | ||
| # define HAVE_WCSFTIME |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
There are compiler warnings: 'HAVE_WCSFTIME': macro redefinition [D:\a\cpython\cpython\PCbuild_freeze_module.vcxproj]
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oh, I did not find where it was defined in C.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Is #54862 issue solved on Windows? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
What exactly is that issue about? I get no mojibake: >>> import time >>> time.strftime('%Z') 'Фінляндія (літо)' >>> time.tzname ('Фінляндія (зима)', 'Фінляндія (літо)') But it crashes on invalid format string (like |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Well, this was unrelated. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I changed my Windows language to French and the timezone to UTC+14, I managed to get a non-ASCII timezone name: So at least for this locale (French_France.1252), it works as expected. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thank you for your review @vstinner. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.