Issue 3282: Undefined unicode characters should be non-printable (original) (raw)
Issue3282
Created on 2008-07-04 13:30 by amaury.forgeotdarc, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Messages (2) | ||
---|---|---|
msg69254 - (view) | Author: Amaury Forgeot d'Arc (amaury.forgeotdarc) * ![]() |
Date: 2008-07-04 13:29 |
str.isprintable() returns True for undefined unicode code points: >>> c = "\ufffe" >>> unicodedata.category(c) 'Cn' # (Other, Not Assigned) >>> c.isprintable() True Same for "\u0242", "\ufb12"... The cause is probably in unicodectype.c: _PyUnicode_IsPrintable(): return (ctype->flags & NONPRINTABLE_MASK) == 0; but ctype->flags is 0 for undefined chars. | ||
msg69261 - (view) | Author: Georg Brandl (georg.brandl) * ![]() |
Date: 2008-07-04 15:55 |
Should be fixed in r64701... |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:36 | admin | set | github: 47532 |
2008-07-04 15:55:28 | georg.brandl | set | status: open -> closedresolution: fixedmessages: + nosy: + georg.brandl |
2008-07-04 13:30:05 | amaury.forgeotdarc | create |