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.

Author pjenvey
Recipients
Date 2007-07-19.20:29:36
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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.

    """
History
Date User Action Args
2007-08-23 15:59:18adminlinkissue1757126 messages
2007-08-23 15:59:18admincreate