diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-09-11 14:13:54 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2019-09-11 14:13:54 (GMT) |
commit | fef5bdc645bc5d037505e3da2965dfabb73f58eb (patch) | |
tree | 5e44c2401c225615cf8ecd980b3819fe1e7680c1 | |
parent | 35d0934040223f1360b2b343005fcc8ebbc65c1a (diff) | |
download | cpython-fef5bdc645bc5d037505e3da2965dfabb73f58eb.zip cpython-fef5bdc645bc5d037505e3da2965dfabb73f58eb.tar.gz cpython-fef5bdc645bc5d037505e3da2965dfabb73f58eb.tar.bz2 |
bpo-34519: Add additional aliases for HP Roman 8 (GH-8956) (GH-15945)
* bpo-34519: Add additional aliases for HP Roman 8
HP Roman 8 is known under mode aliases than listed in aliases.py.
Patch by Michael Osipov.
(cherry picked from commit a828514cc3715ebbc700fefa41c0ef044cbd6741)
Co-authored-by: Michael Osipov <michael.osipov@siemens.com>
-rw-r--r-- | Lib/encodings/aliases.py | 2 | ||||
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py index 5ef40a3..2444f9f 100644 --- a/Lib/encodings/aliases.py +++ b/Lib/encodings/aliases.py @@ -266,6 +266,8 @@ aliases = { 'roman8' : 'hp_roman8', 'r8' : 'hp_roman8', 'csHPRoman8' : 'hp_roman8', + 'cp1051' : 'hp_roman8', + 'ibm1051' : 'hp_roman8', # hz codec 'hzgb' : 'hz', diff --git a/Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst b/Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst new file mode 100644 index 0000000..e17e2dc --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst @@ -0,0 +1 @@ +Add additional aliases for HP Roman 8. Patch by Michael Osipov. |