Skip to content
Tcl Source Code History Of Ticket 22324bcbd
Login

History Of Ticket 22324bcbd

Artifacts Associated With Ticket 22324bcbd

  1. Ticket change [b6ac80a886] (rid 191729) by chw on 2021-02-12 17:28:13:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      set string \ud83d\udca3
      -> 💣
      
      binary encode hex [encoding convertto utf-8 $string]
      -> f09f92a3
      
      binary encode hex [encoding convertto utf-8 [string reverse $string]]
      -> edb2a3eda0bd
      
    5. foundin initialized to: "8.6.11"
    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: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "chw"
    14. subsystem initialized to: "44. UTF-8 Strings"
    15. title initialized to: "string reverse is broken in 8.6.11"
    16. type initialized to: "Bug"
  2. Ticket change [fa313cc1cc] (rid 191735) by jan.nijtmans on 2021-02-12 17:42:05:

    1. assignee changed to: "jan.nijtmans"
    2. foundin changed to: "8.6"
    3. icomment:
      Yep, this is a known bug, since "string reverse" reverses the surrogates resulting in invalid characters. It has been this way since 8.6.0 (most likely 8.5 as well), so it isn't a regression between 8.6.10/8.6.11 (therefore changed "Version" to "8.6". I think 8.7 still has the same bug as well. It's fixed in Tcl 9.0
      
      Some people consider changing the result of existing commands in a patch release (see also [debd088e48]) a bug, so we should be careful when fixing this in 8.6.
      
      Are you willing to supply a patch?
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
  3. Ticket change [7d16bca616] (rid 191736) by chw on 2021-02-12 17:59:23:

    1. icomment:
      The problem here is that versions < 8.6.11 would result in
      
      binary encode hex [encoding convertto utf-8 $string]
      -> eda0bdedb2a3
      
      i.e. despite being not proper UTF-8 at least the contract
      of reversing the string is fulfilled, whereas 8.6.11
      delivers a questionable result.
      
      Yes, I think it should be fixed, but don't know how yet.
      
    2. login: "chw"
    3. mimetype: "text/plain"
  4. Ticket change [af2d9ff372] (rid 191737) by chw on 2021-02-13 05:16:49:

    1. icomment:
      The attached stringrev.diff is a POC patch against a core-8-6-11 checkout.
      
    2. login: "chw"
    3. mimetype: "text/plain"
  5. Add attachment "stringrev.diff" [c136d1a304] (rid 191738) by chw on 2021-02-13 05:17:43.

  6. Ticket change [b96745c263] (rid 191745) by jan.nijtmans on 2021-02-14 17:26:23:

    1. icomment:
      Thanks for the patch! I prefer to fix this in 8.7 first (it's still a bug there too), and after that reconsider for backport to 8.6.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  7. Ticket change [200150a915] (rid 191826) by jan.nijtmans on 2021-02-16 12:16:45:

    1. closedate changed to: "2459262.0116412"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Fixed now in core-8-6-branch and up. Thanks, Christian for the POC patch. There were some corner-cases to be handled, but it was a big help in getting this right!
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"