[Python-checkins] bpo-34519: Add additional aliases for HP Roman 8 (GH-8956) (GH-15945)
Jason R. Coombs
webhook-mailer at python.org
Wed Sep 11 10:13:58 EDT 2019
https://github.com/python/cpython/commit/fef5bdc645bc5d037505e3da2965dfabb73f58eb
commit: fef5bdc645bc5d037505e3da2965dfabb73f58eb
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Jason R. Coombs <jaraco at jaraco.com>
date: 2019-09-11T15:13:54+01:00
summary:
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 at siemens.com>
files:
A Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst
M Lib/encodings/aliases.py
diff --git a/Lib/encodings/aliases.py b/Lib/encodings/aliases.py
index 5ef40a3438b9..2444f9f1795e 100644
--- a/Lib/encodings/aliases.py
+++ b/Lib/encodings/aliases.py
@@ -266,6 +266,8 @@
'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 000000000000..e17e2dc0fdcc
--- /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.
More information about the Python-checkins
mailing list