mirror of
https://github.com/python/cpython.git
synced 2025-12-09 02:35:14 +00:00
Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a string argument contains non-BMP character.
This commit is contained in:
commit
df4aa642a5
2 changed files with 4 additions and 1 deletions
|
|
@ -178,6 +178,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #13153: Tkinter functions now raise TclError instead of ValueError when
|
||||||
|
a string argument contains non-BMP character.
|
||||||
|
|
||||||
- Issue #9669: Protect re against infinite loops on zero-width matching in
|
- Issue #9669: Protect re against infinite loops on zero-width matching in
|
||||||
non-greedy repeat. Patch by Matthew Barnett.
|
non-greedy repeat. Patch by Matthew Barnett.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -990,7 +990,7 @@ AsObj(PyObject *value)
|
||||||
#if TCL_UTF_MAX == 3
|
#if TCL_UTF_MAX == 3
|
||||||
if (ch >= 0x10000) {
|
if (ch >= 0x10000) {
|
||||||
/* Tcl doesn't do UTF-16, yet. */
|
/* Tcl doesn't do UTF-16, yet. */
|
||||||
PyErr_Format(PyExc_ValueError,
|
PyErr_Format(Tkinter_TclError,
|
||||||
"character U+%x is above the range "
|
"character U+%x is above the range "
|
||||||
"(U+0000-U+FFFF) allowed by Tcl",
|
"(U+0000-U+FFFF) allowed by Tcl",
|
||||||
ch);
|
ch);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue