[issue41048] read_mime_types() should read the rule file using UTF-8, not the locale encoding

Serhiy Storchaka report at bugs.python.org
Sat Jun 20 05:11:00 EDT 2020


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

MimeTypes.read() read the rule file using UTF-8, but read_mime_types() uses the locale encoding.

It is an easy issue. You need just repeat issue13025 for read_mime_types().

----------
components: Library (Lib)
keywords: easy
messages: 371925
nosy: serhiy.storchaka, vstinner
priority: normal
severity: normal
stage: needs patch
status: open
title: read_mime_types() should read the rule file using UTF-8, not the locale encoding
type: behavior
versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue41048>
_______________________________________


More information about the Python-bugs-list mailing list