Title: zoneinfo uses locale depending functions for parsing
Type: behavior Stage:
Components: Library (Lib) Versions: Python 3.10, Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: p-ganssle, serhiy.storchaka
Priority: normal Keywords:

Created on 2020-12-18 18:09 by serhiy.storchaka, last changed 2020-12-18 18:09 by serhiy.storchaka.

Messages (1)
msg383313 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-12-18 18:09
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).
Date User Action Args
2020-12-18 18:09:32serhiy.storchakacreate