Tk Source Code

View Ticket
Login
Ticket UUID: 3080953
Title: Malformed Unicode characters in %A substitution
Type: Bug Version: None
Submitter: quantifier Created on: 2010-10-04 15:12:37
Subsystem: 01. Bindings Assigned To: jan.nijtmans
Priority: 8 Severity:
Status: Closed Last Modified: 2014-03-13 09:08:58
Resolution: Fixed Closed By: nijtmans
    Closed on: 2010-10-05 14:49:07
Description:
%A substitute in bind scripts is broken, contains the unicode character, but in wrong encoding.
For example "\u015b" (letter ś) becomes two-character string "\x5b\x01"

System is Windows XP, tcl/tk is latest from CVS. Version from 2010-09-21 doesn't have bug.
User Comments: nijtmans added on 2010-10-05 21:49:07:

allow_comments - 1

fixed in HEAD

nijtmans added on 2010-10-05 20:48:48:
The problem is somewhere in tkWinX.c, so temporary don't compile it with -DUNICODE, until the real problem is found.

I'll try to create a test case for this.

nijtmans added on 2010-10-05 20:11:50:
I'll have a look

kennykb added on 2010-10-04 22:21:10:
Bug appears to have been introduced with the recent -DUNICODE change.