summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2020-06-29 12:07:31 (GMT)
committerGitHub <noreply@github.com>2020-06-29 12:07:31 (GMT)
commit9e36b6e6c8fc8925c6a5e7b57aff527bc4b862a8 (patch)
treee414e8367cc3f4e45753a4b0c9812bb5b60f6cee /Misc
parent02134dae448c7885c9c07adfc6970f878db33372 (diff)
downloadcpython-9e36b6e6c8fc8925c6a5e7b57aff527bc4b862a8.zip
cpython-9e36b6e6c8fc8925c6a5e7b57aff527bc4b862a8.tar.gz
cpython-9e36b6e6c8fc8925c6a5e7b57aff527bc4b862a8.tar.bz2
bpo-41048: mimetypes should read the rule file using UTF-8, not the locale encoding (GH-20998)
(cherry picked from commit 7f569c9bc0079906012b3034d30fe8abc742e7fc) Co-authored-by: Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి) <thatiparthysreenivas@gmail.com>
Diffstat (limited to 'Misc')
-rw-r--r--Misc/ACKS1
-rw-r--r--Misc/NEWS.d/next/Library/2020-06-20-10-16-57.bpo-41048.hEXB-B.rst2
2 files changed, 3 insertions, 0 deletions
diff --git a/Misc/ACKS b/Misc/ACKS
index 0fc1954..2a180eb 100644
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -1705,6 +1705,7 @@ Mikhail Terekhov
Victor Terrón
Pablo Galindo
Richard M. Tew
+Srinivas Reddy Thatiparthy
Tobias Thelen
Christian Theune
Févry Thibault
diff --git a/Misc/NEWS.d/next/Library/2020-06-20-10-16-57.bpo-41048.hEXB-B.rst b/Misc/NEWS.d/next/Library/2020-06-20-10-16-57.bpo-41048.hEXB-B.rst
new file mode 100644
index 0000000..2595900
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-06-20-10-16-57.bpo-41048.hEXB-B.rst
@@ -0,0 +1,2 @@
+:func:`mimetypes.read_mime_types` function reads the rule file using UTF-8 encoding, not the locale encoding.
+Patch by Srinivas Reddy Thatiparthy. \ No newline at end of file