Patches item #1757126, was opened at 2007-07-19 21:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1757126&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: Python 2.6
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Philip Jenvey (pjenvey)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix ptcp154 encoding cyrillic_asian alias

Initial Comment:
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.

    """

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1757126&group_id=5470
_______________________________________________
Patches mailing list
[email protected]
http://mail.python.org/mailman/listinfo/patches

Reply via email to