summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Doc/library/codecs.rst2
-rw-r--r--Lib/encodings/aliases.py1
-rw-r--r--Misc/NEWS2
3 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 31e0424..e734fee 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -1090,7 +1090,7 @@ particular, the following variants typically exist:
+-----------------+--------------------------------+--------------------------------+
| mac_latin2 | maclatin2, maccentraleurope | Central and Eastern Europe |
+-----------------+--------------------------------+--------------------------------+
-| mac_roman | macroman | Western Europe |
+| mac_roman | macroman, macintosh | Western Europe |
+-----------------+--------------------------------+--------------------------------+
| mac_turkish | macturkish | Turkish |
+-----------------+--------------------------------+--------------------------------+
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 9461e5f..a8c48df 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -435,6 +435,7 @@ aliases = {
'maclatin2' : 'mac_latin2',
# mac_roman codec
+ 'macintosh' : 'macintosh',
'macroman' : 'mac_roman',
# mac_turkish codec
diff --git a/Misc/NEWS b/Misc/NEWS
index 3512e86..019cd4b 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -117,6 +117,8 @@ Extensions
Library
-------
+- Issue #843590: Make "macintosh" an alias to the "mac_roman" encoding.
+
- Create os.fsdecode(): decode from the filesystem encoding with
surrogateescape error handler, or strict error handler on Windows.