[issue35551] Encoding and alias issues

2019-02-24 Thread BLKSerene


BLKSerene  added the comment:

I suppose that mac_centeuro can be removed since it is identical to mac_latin2, 
and there are already some aliases for mac_latin2. Then, mac_centeuro can be 
added as an alias for mac_latin2.

I'm not sure about why latin_1 and iso8859_1 are both supported (they are 
identical). The doc says:

 "CPython implementation detail: Some common encodings can bypass the codecs 
lookup machinery to improve performance. These optimization opportunities are 
only recognized by CPython for a limited set of (case insensitive) aliases: 
utf-8, utf8, latin-1, latin1, iso-8859-1, iso8859-1, mbcs (Windows only), 
ascii, us-ascii, utf-16, utf16, utf-32, utf32, and the same using underscores 
instead of dashes. Using alternative aliases for these encodings may result in 
slower execution."

Also not sure whether this would matter or not.

--

___
Python tracker 
<https://bugs.python.org/issue35551>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue35551] Encoding and alias issues

2018-12-21 Thread BLKSerene


New submission from BLKSerene :

There're some minor issues about encodings supported by Python.
1. "tis260" is the alias for "tactis", where "tis260" might be a typo, which 
should be tis620. And "tactis" is not a supported encoding by Python (and I 
can't find any information about this encoding on Google).
2. "mac_latin2" and "mac_centeuro" refer to the same encoding (the decoding 
tables are identical), but they are provided as two encodings in different 
names ("maccentraleurope" is an alias for "mac_latin2", but "mac_centeuro" 
isn't).
3. The same problem for "latin_1" and "iso8859_1" ("iso_8859_1" is an alias for 
"latin_1", but "iso8859_1" isn't).

--
components: Unicode
messages: 332285
nosy: blkserene, ezio.melotti, vstinner
priority: normal
severity: normal
status: open
title: Encoding and alias issues
type: enhancement
versions: Python 3.7

___
Python tracker 
<https://bugs.python.org/issue35551>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com