[New-bugs-announce] [issue42676] zoneinfo uses locale depending functions for parsing
Serhiy Storchaka
report at bugs.python.org
Fri Dec 18 13:09:32 EST 2020
New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:
zoneinfo uses locale depending functions isalpha(), isdigit(), isalnum() to parse data. It may be correct when parse the TZ environment variable (although they do not work with multibytes locale encodings like UTF-8), I think that parsing the content of data files should not rely on current locale. Later the parsed data is decoded implying UTF-8 (for abbr) or ASCII (for numbers).
----------
components: Library (Lib)
messages: 383313
nosy: p-ganssle, serhiy.storchaka
priority: normal
severity: normal
status: open
title: zoneinfo uses locale depending functions for parsing
type: behavior
versions: Python 3.10, Python 3.9
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue42676>
_______________________________________
More information about the New-bugs-announce
mailing list