]> granicus.if.org Git - python/commitdiff
bpo-34519: Add additional aliases for HP Roman 8 (GH-8956)
authorMichael Osipov <michael.osipov@siemens.com>
Wed, 11 Sep 2019 13:08:41 +0000 (15:08 +0200)
committerJason R. Coombs <jaraco@jaraco.com>
Wed, 11 Sep 2019 13:08:41 +0000 (14:08 +0100)
* 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.

Lib/encodings/aliases.py
Misc/NEWS.d/next/Library/2018-08-27-15-44-50.bpo-34519.cPlH1h.rst [new file with mode: 0644]

index 8b621add1b1bad5200abc79e056ac5a28280f6d3..d85afd6d5cf704b580a31be2ee79f5cdfe0247c1 100644 (file)
@@ -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 (file)
index 0000000..e17e2dc
--- /dev/null
@@ -0,0 +1 @@
+Add additional aliases for HP Roman 8. Patch by Michael Osipov.