In simple text edit trying to input non-english characters with keyboard ends with a crash on MacOS X (10.6).
For example, to input Latvian language characters, apostrophe should be pressed followed by some letter (a, e, i, u, k, l, ...)
Tkinter crashes immediately after apostrophe was pressed on keyboard.
Terminal output:
2011-02-10 14:52:29.444 Python[10633:613] An uncaught exception was raised
2011-02-10 14:52:29.448 Python[10633:613] *** -[NSCFString characterAtIndex:]: Range or index out of bounds
2011-02-10 14:52:29.450 Python[10633:613] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFString characterAtIndex:]: Range or index out of bounds'
*** Call stack at first throw:
(
0 CoreFoundation 0x00007fff88d407b4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00007fff86f480f3 objc_exception_throw + 45
2 CoreFoundation 0x00007fff88d405d7 +[NSException raise:format:arguments:] + 103
3 CoreFoundation 0x00007fff88d40564 +[NSException raise:format:] + 148
4 Foundation 0x00007fff8384e5e1 -[NSCFString characterAtIndex:] + 97
5 Tk 0x00000001010b5bcf Tk_SetCaretPos + 663
6 Tk 0x00000001010bbd94 Tk_MacOSXSetupTkNotifier + 699
7 Tcl 0x00000001007542ae Tcl_DoOneEvent + 297
8 _tkinter.so 0x00000001006d262d Tkapp_MainLoop + 413
9 Python 0x00000001000c124d PyEval_EvalFrameEx + 22397
10 Python 0x00000001000c2f49 PyEval_EvalCodeEx + 2137
11 Python 0x00000001000c0d8a PyEval_EvalFrameEx + 21178
12 Python 0x00000001000c2f49 PyEval_EvalCodeEx + 2137
13 Python 0x000000010003dd80 function_call + 176
14 Python 0x000000010000c9f2 PyObject_Call + 98
15 Python 0x000000010001eebb instancemethod_call + 363
16 Python 0x000000010000c9f2 PyObject_Call + 98
17 Python 0x00000001000ba817 PyEval_CallObjectWithKeywords + 87
18 Python 0x000000010002214e PyInstance_New + 126
19 Python 0x000000010000c9f2 PyObject_Call + 98
20 Python 0x00000001000be813 PyEval_EvalFrameEx + 11587
21 Python 0x00000001000c2f49 PyEval_EvalCodeEx + 2137
22 Python 0x00000001000c3066 PyEval_EvalCode + 54
23 Python 0x00000001000e7b2e PyRun_FileExFlags + 174
24 Python 0x00000001000e7de9 PyRun_SimpleFileExFlags + 489
25 Python 0x00000001000fe75c Py_Main + 2940
26 Python 0x0000000100000f14 0x0 + 4294971156
)
terminate called after throwing an instance of 'NSException'
Abort trap
|