mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +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:
parent
467393dff5
commit
59f5dee3d6
2 changed files with 4 additions and 1 deletions
|
@ -993,7 +993,7 @@ AsObj(PyObject *value)
|
|||
for (i = 0; i < size; i++) {
|
||||
if (inbuf[i] >= 0x10000) {
|
||||
/* Tcl doesn't do UTF-16, yet. */
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
PyErr_Format(Tkinter_TclError,
|
||||
"character U+%x is above the range "
|
||||
"(U+0000-U+FFFF) allowed by Tcl",
|
||||
inbuf[i]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue