[New-bugs-announce] [issue37751] In codecs, function 'normalizestring' should convert both spaces and hyphens to underscores.

Jordon.X report at bugs.python.org
Sat Aug 3 07:34:13 EDT 2019


New submission from Jordon.X <9651234 at qq.com>:

In codecs.c,  when _PyCodec_Lookup() call normalizestring(), both spaces and hyphens should be convered to underscores. Not convert spaces to hyphens.

see:https://github.com/python/peps/blob/master/pep-0100.txt, Codecs (Coder/Decoders) Lookup

----------
components: Unicode
messages: 348953
nosy: ezio.melotti, qigangxu, vstinner
priority: normal
severity: normal
status: open
title: In codecs,  function 'normalizestring' should convert both spaces and hyphens to underscores.
type: behavior
versions: Python 3.9

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


More information about the New-bugs-announce mailing list