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 belopolsky
Recipients belopolsky, eric.araujo, ezio.melotti, jcea, lemburg, sdaoden, vstinner
Date 2011-02-24.16:36:38
SpamBayes Score 2.2078433e-07
Marked as misclassified No
Message-id <AANLkTimQJRjfgEEF0Ff1m8LHiQOSc=A+weAhdZ6AXsfr@mail.gmail.com>
In-reply-to <4D6687E2.20607@egenix.com>
Content
On Thu, Feb 24, 2011 at 11:31 AM, Marc-Andre Lemburg
<report@bugs.python.org> wrote:
..
> I think rather than removing any hyphens, spaces, etc. the
> function should additionally:
>
>  * add hyphens whenever (they are missing and) there's switch
>   from [a-z] to [0-9]
>

This will do the wrong thing to the "cs" family of aliases:

"""
The aliases that start with "cs" have been added for use with the
IANA-CHARSET-MIB as originally defined in RFC3808, and as currently
maintained by IANA at http://www.iana.org/assignments/ianacharset-mib.
Note that the ianacharset-mib needs to be kept in sync with this
registry.  These aliases that start with "cs" contain the standard
numbers along with suggestive names in order to facilitate applications
that want to display the names in user interfaces.  The "cs" stands
for character set and is provided for applications that need a lower
case first letter but want to use mixed case thereafter that cannot
contain any special characters, such as underbar ("_") and dash ("-").
"""
History
Date User Action Args
2011-02-24 16:36:39belopolskysetrecipients: + belopolsky, lemburg, jcea, vstinner, ezio.melotti, eric.araujo, sdaoden
2011-02-24 16:36:38belopolskylinkissue11303 messages
2011-02-24 16:36:38belopolskycreate