summaryrefslogtreecommitdiffstats
path: root/README.rst
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-06-12 23:13:27 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-06-12 23:13:27 (GMT)
commitb4c7defe58695a6670a8fdeaef67a638bbb47e42 (patch)
tree6cc67accc1cc7190269bca65314e2ee3fe275d17 /README.rst
parent95f61c8b1619e736bd5e29a0da0183234634b6e8 (diff)
downloadcpython-b4c7defe58695a6670a8fdeaef67a638bbb47e42.zip
cpython-b4c7defe58695a6670a8fdeaef67a638bbb47e42.tar.gz
cpython-b4c7defe58695a6670a8fdeaef67a638bbb47e42.tar.bz2
bpo-36779: time.tzname returns empty string on Windows if default cod… (GH-13073)
Calling setlocale(LC_CTYPE, "") on a system where GetACP() returns CP_UTF8 results in empty strings in _tzname[]. This causes time.tzname to be an empty string. I have reported the bug to the UCRT team and will follow up, but it will take some time get a fix into production. In the meantime one possible workaround is to temporarily change the locale by calling setlocale(LC_CTYPE, "C") before calling _tzset and restore the current locale after if the GetACP() == CP_UTF8 or CP_UTF7 @zooba https://bugs.python.org/issue36779
Diffstat (limited to 'README.rst')
0 files changed, 0 insertions, 0 deletions