This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [PATCH] Fix ptcp154 encoding cyrillic_asian alias
Type: Stage:
Components: Library (Lib) Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: pjenvey
Priority: normal Keywords: patch

Created on 2007-07-19 20:29 by pjenvey, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
aliases_cyrillic_asian_r56460.diff pjenvey, 2007-07-19 20:29 patch against trunk r56460
Messages (2)
msg52914 - (view) Author: Philip Jenvey (pjenvey) * (Python committer) Date: 2007-07-19 20:29
This small patch fixes a typo in Lib/encodings/aliases.py, breaking an alias of the ptcp154 codec to cyrillic_asian

The alias is currently marked as 'cyrillic-asian', which isn't a valid normalized encoding name. The '-' should be normalized to '_' -- it should be 'cyrillic_asian'. Aliases are looked up from the aliases.py mapping by their noramlized name, described as:

def normalize_encoding(encoding):

    """ Normalize an encoding name.

        Normalization works as follows: all non-alphanumeric
        characters except the dot used for Python package names are
        collapsed and replaced with a single underscore, e.g. '  -;#'
        becomes '_'. Leading and trailing underscores are removed.

        Note that encoding names should be ASCII only; if they do use
        non-ASCII characters, these must be Latin-1 compatible.

    """
msg95364 - (view) Author: Philip Jenvey (pjenvey) * (Python committer) Date: 2009-11-17 04:14
fixed in r76337, r76338
History
Date User Action Args
2022-04-11 14:56:25adminsetgithub: 45225
2009-11-17 04:14:47pjenveysetstatus: open -> closed
resolution: fixed
messages: + msg95364
2009-02-05 04:38:10pjenveysettitle: Fix ptcp154 encoding cyrillic_asian alias -> [PATCH] Fix ptcp154 encoding cyrillic_asian alias
2007-07-19 20:29:36pjenveycreate