Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2011-12-08
02:53 • Closed ticket [3444754fff]: string tolower \u01c5 is wrong plus 7 other chan... artifact: 11b859d2d2 user: nijtmans
2011-12-06
20:52 • Ticket [3444754fff]: 4 changes artifact: b8e0bfa442 user: nijtmans
20:48 • Add attachment tclUniData.c.diff to ticket [3444754fffffffff|3444754fff... artifact: 7aa68530ab user: nijtmans
20:48 • Ticket [3444754fff] string tolower \u01c5 is wrong status still Open with 4 ... artifact: 6dbdd0c5f7 user: nijtmans
2011-12-05
21:32 • Ticket [3444754fff]: 4 changes artifact: 14c1c0e70f user: nijtmans
2011-12-04
16:09 • Ticket [3444754fff]: 4 changes artifact: eef30afb95 user: nijtmans
2011-11-29
18:19 • Ticket [3444754fff]: 5 changes artifact: 47321fe015 user: nijtmans
17:00 • Ticket [3444754fff]: 1 change artifact: eb29877996 user: dkf
16:30 • Ticket [3444754fff]: 4 changes artifact: 0b927cb83e user: dkf
10:54 • Ticket [3444754fff]: 4 changes artifact: abfe62ab6d user: msteveb
03:42 • New ticket [3444754fff]. artifact: f04d431a18 user: msteveb

string tolower \u01c5 is wrong

Closed / Fixed3444754fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 15 years ago
Descriptionplain2011-11-29 03:42:34
\u01c5 is the title case variant: Dž

The lower case variant should be \u01c6 (dž), and this works for 8.5.8 but instead  8.5.11 and 8.6b2 give \u01c5 (.i.e unchanged).

Here is the relevant entry from http://unicode.org/Public/UNIDATA/UnicodeData.txt

01C5;LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON;Lt;0;L;<compat> 0044 017E;;;;N;LATIN LETTER CAPITAL D SMALL Z HACEK;;01C4;01C6;01C5
mstevebplain2011-11-29 10:54:42
Ditto, \u01cb and \u01f2
dkfplain2011-11-29 16:30:41
Probably related to the fix for 3393714.
dkf Ticket [3444754fff]: 1 change [History diff]2011-11-29 17:00:53
nijtmansplain2011-11-29 18:19:55
Confirmed. Will have a look.
nijtmansplain2011-12-04 16:09:59
This bug is introduced earlier, at 2010-10-23
with the upgrade to Unicode 6.0 (Bug 3085863),
it has no relation to 3393714
nijtmansplain2011-12-05 21:32:05
Compare this UnicodeData.text line with the earlier entry in Unicode 2.x:

01C5;LATIN CAPITAL LETTER D WITH SMALL LETTER Z WITH CARON;Lt;0;L;<compat> 0044 017E;;;;N;LATIN LETTER CAPITAL D SMALL Z HACEK;;01C4;01C6;

So, the bug is introduced by a syntax change in the
UnicodeData.txt file, not by any change at the Tcl
side. The uniParse.tcl handles the line differently
when the 'totitle' entry is filled.

Other characters which changed the same way are
\u01cb and \u01f2 (as mentioned by Steve), but
many more.....

OK, now I have all information needed to fix this....
nijtmansplain2011-12-06 20:48:47
File Added - 430129: tclUniData.c.diff
nijtmansplain2011-12-06 20:52:44
Here is the fix (see attached patch), just a single
number 32931 should have been
32963 (line 754 of tclUniData.c).

Will check that in soon, together with the
updated uniParse.tcl which generates
this correctly.
nijtmansplain2011-12-08 02:53:57
allow_comments - 1

Fix committed to all open branches, so it will appear in Tcl 8.5.12 and 8.6b3
Log in (anonymous is fine) to add a comment.

Attachments: