classification
Title: PEP 597: mailcap uses locale encoding
Type: Stage:
Components: Library (Lib) Versions: Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: methane
Priority: normal Keywords:

Created on 2021-04-05 12:35 by methane, last changed 2021-04-05 12:35 by methane.

Messages (1)
msg390231 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2021-04-05 12:35
mailcap.getcaps() uses locale encoding.
https://github.com/python/cpython/blob/c8e5eb904e12010d2302364e1037c24a30f5e241/Lib/mailcap.py#L33

As my understanding, RFC 1524 uses only ASCII characters.
Can we change the encoding to ASCII or UTF-8?
History
Date User Action Args
2021-04-05 12:35:59methanecreate