Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 42bedce348ae0cadfc4275045200c9b8a51f6c056e9f00222383431e274f6e0d
Ticket: d63061a1ac4003efe490a216757df4fdd36d61aa
PRIVATE != CONTROL in Unicode
User & Date: jan.nijtmans on 2024-01-15 10:44:01
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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.
    
  5. foundin changed to: "8.6"
  6. is_private changed to: "0"
  7. login: "jan.nijtmans"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "0c50e5320704d174412e57b873d8932de15303e0"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "jan.nijtmans"
  14. subsystem changed to: "44. UTF-8 Strings"
  15. title changed to: "PRIVATE != CONTROL in Unicode"
  16. type changed to: "Bug"