New submission from Jordon.X <9651...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue37751>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to