]> granicus.if.org Git - python/commitdiff
alias macintosh to mac_roman #843590
authorBenjamin Peterson <benjamin@python.org>
Sat, 21 Aug 2010 02:54:44 +0000 (02:54 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sat, 21 Aug 2010 02:54:44 +0000 (02:54 +0000)
Doc/library/codecs.rst
Lib/encodings/aliases.py
Misc/NEWS

index 31e04244ba1c4e178dc30fba49932757edb46414..e734fee0b107b4864804a963ac5eeba1220f953b 100644 (file)
@@ -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                        |
 +-----------------+--------------------------------+--------------------------------+
index 9461e5f65e9ad9d6d4c01859fe4af8e0a077a68c..a8c48df27a98ecaf741450e515e032f80eced23a 100644 (file)
@@ -435,6 +435,7 @@ aliases = {
     'maclatin2'          : 'mac_latin2',
 
     # mac_roman codec
+    'macintosh'          : 'macintosh',
     'macroman'           : 'mac_roman',
 
     # mac_turkish codec
index 3512e8624c7bf05513db727ded46b4d7c83c0468..019cd4b9dafb85d653f5533f9b995de650104cdc 100644 (file)
--- 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.