[issue44723] Codec name normalization breaks custom codecs

2021-07-23 Thread Bodo Graumann
New submission from Bodo Graumann : This is a follow up on https://bugs.python.org/issue37751 concerning normalization of codec names. First of all, the changes made therein are not documented correctly. In the implementation | Normalization works as follows: all non-alphanumeric | characters

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

2021-06-12 Thread Bodo Graumann
Bodo Graumann added the comment: Unfortunately this is not quite finished yet. First of all, the change is bigger than what is documented: “Changed in version 3.9: Hyphens and spaces are converted to underscore.“ In reality, now | Normalization works as follows: all non-alphanumeric