[issue46668] encodings: the "mbcs" alias doesn't work

STINNER Victor report at bugs.python.org
Sun Feb 6 18:10:38 EST 2022


STINNER Victor <vstinner at python.org> added the comment:

The alias was created in 2003 to fix bpo-671666:
---
commit 4eab486476c0082087a8460a5ab1064e64cc1a6b
Author: Martin v. Löwis <martin at v.loewis.de>
Date:   Mon Mar 3 09:34:01 2003 +0000

    Patch #671666: Alias ANSI code page to "mbcs".
---

In 2003, bpo-671666 was created because Python didn't support "cp932" encoding, whereas the MBCS codec was available and could used directly since cp932 was the ANSI code page.

The alias allows to support the ANSI code 932 without implement it.

But Python got a "cp932" codec the year after:
---
commit 3e2a30692085d32ac63f72b35da39158a471fc68
Author: Hye-Shik Chang <hyeshik at gmail.com>
Date:   Sat Jan 17 14:29:29 2004 +0000

    Add CJK codecs support as discussed on python-dev. (SF #873597)
    
    Several style fixes are suggested by Martin v. Loewis and
    Marc-Andre Lemburg. Thanks!
---

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46668>
_______________________________________


More information about the Python-bugs-list mailing list