Skip to content
Tcl Source Code History Of Ticket 3cd9bea1e6
Login

History Of Ticket 3cd9bea1e6

Artifacts Associated With Ticket 3cd9bea1e6

  1. Ticket change [33fc5a40ea] (rid 177580) by chw on 2019-12-03 00:41:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      From code reading I believe that check-in [43032d7ba3] leaves out corner cases:
      
      * it does not check for the return code of the inner TclParseHex()
      * it requires the second "\u.." escape sequence to have 4 hex digits
        (which is a required condition for the low surrogate, no complaints about it)
      * but it will accept "\ud83d\uxyyzz" without proper error handling
      
    5. foundin initialized to: "core-8-6-branch"
    6. is_private initialized to: "0"
    7. login: "chw"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0b3aff16612e1e9f3b675963fa64e01bd1d89307"
    10. resolution initialized to: "None"
    11. severity initialized to: "Important"
    12. status initialized to: "Open"
    13. submitter initialized to: "chw"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "check-in [43032d7ba3] potential problems"
    16. type initialized to: "Bug"
  2. Ticket change [4edfbf3b4e] (rid 177595) by jan.nijtmans on 2019-12-03 15:17:02:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2458821.13683281"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Fixed in all branches now. Thanks!
      
      The goal of this is to make it almost impossible to create surrogate-pairs when Tcl is compiled with -DTCL_UTF_MAX>3: We want 4-byte UTF-8 sequences always. Of course you can still work around it like:
      <pre>
          %set x \uD83D
          �
          % append x \uDE00
          😀
      <pre>
      I'm sure there are still other ways to create surrogate pairs as two 3-byte sequences, but this should be discouraged.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"