Artifacts Associated With Ticket d63061a1ac
Ticket change [42bedce348] (rid 221326) by jan.nijtmans on 2024-01-15 10:44:01:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
Example: <pre> % string is control \u000A # Unicode category "Cc" 1 % string is control \uE000 # Unicode category "Co" 1 % string is control \uFFFF # Unicode category "Cn" 0 % string is control \uFC00 # Unicode category "Cs" 0 </pre> Currently, "string is control" gives "1" if the character is of one of the Unicode categories "Cc" (a C0 or C1 control code), "Cf" (a format control character), "Co" (a private-use character), but not for "Cs" (a surrogate code point) or "Cn" (a reserved unassigned code point or a noncharacter). Why is "Co" (a private-use character) included? It's not logical: This range is normally used for Glyphs (in e.g. China/Japan) which didn't have an entry assigned yet in an official Unicode version. Normally those are not Control codes. Therfore, it would be more logical to leave out characters from the "Co" category from the "string is control" implementation. For Tcl 8.6, this only affects the range from U+E000 - U+F8FF. For Tcl 8.7, it affects the ranges U+F0000 - U+FFFFD and U+100000 - U+10FFFD as well.
- foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "jan.nijtmans"
- priority initialized to: "5 Medium"
- private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "jan.nijtmans"
- subsystem initialized to: "44. UTF-8 Strings"
- title initialized to: "PRIVATE != CONTROL in Unicode"
- type initialized to: "Bug"
Ticket change [02aadb0be1] (rid 221352) by jan.nijtmans on 2024-01-18 07:45:33:
- icomment:
This ticket is not important enough to rush into Tcl 8.6.14. I will start dicussion about it after 8.6.14 is released. But ... if someone (Ashok ....) want to comment on it already, here is the place to do it.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [3753d481e2] (rid 221357) by apnadkarni on 2024-01-19 06:14:11:
- icomment:
I would agree that Co being classified as a control character does not make sense and should be removed. Additionally, I have mixed feelings about Cf characters also being classified as control characters. On one hand, I can see why if they are referenced as "format controls". On the other hand, I think most programmers' expectation is that the string is matched against the "traditional" Cc category members. I suppose we can punt that distinction to the future when general Unicode categorization of code points is added to Tcl.
- login: "apnadkarni"
- mimetype: "text/plain"
- icomment:
Ticket change [68ba061ebc] (rid 221364) by jan.nijtmans on 2024-01-19 12:41:57:
- icomment:
> I would agree that Co being classified as a control character does not make sense and should be removed. Thanks! > I suppose we can punt that distinction to the future I'm thinking about "string is Cc", "string is Cf" for this. But it would also fit into the regexp syntax as \p{Cc} \p{Cf}. See [https://unicode.org/reports/tr18/]. Of course, this would be a hell of a job to implement completely. But starting with "1.2.5 General Category Property", short form only, would be nice. - login: "jan.nijtmans"
- mimetype: "text/x-fossil-plain"
- icomment:
Ticket change [f2dfc53016] (rid 221375) by jan.nijtmans on 2024-01-21 16:16:05:
- icomment:
See: [3464428]. Looks like Ruby got it 'wrong' too ...
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [5afb5bf649] (rid 259693) by serhiy.storchaka on 2026-10-21 10:03:35:
- icomment:
Fixed by [0480bdc823] (in 8.6.15 and 9.0.0): private-use characters (category Co) are no longer <tt>string is control</tt>. Cc and Cf are unchanged.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- icomment:
Ticket change [066022a0fe] (rid 259991) by serhiy.storchaka on 2026-10-22 17:19:29:
- closedate changed to: "2461334.919165035"
- closer changed to: "serhiy.storchaka"
- login: "serhiy.storchaka"