Skip to content
Tcl Source Code History Of Ticket 17a1cb8d6e2a51bd
Login

History Of Ticket 17a1cb8d6e2a51bd

Artifacts Associated With Ticket 17a1cb8d6e2a51bd

  1. Ticket change [e0807a6185] (rid 207827) by pointsman on 2022-12-12 23:44:57:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-plain"
    4. comment initialized to:
      With 252e282cd21b (2022-12-12 06:11:22 UTC)
      
      # Create the test data
      package require Tcl 9
      set fd [open data.txt w+]
      fconfigure $fd -encoding utf-8
      puts $fd "A\U10FFFFBCDE"
      close $fd
      
      
      # The data is a valid UTF-8 encoded Unicode string
      # in the understanding of Tcl.
      
      # Try to read it
      package require Tcl 9
      set fd [open "data.txt"]
      fconfigure $fd -encoding utf-8 -strictencoding 1 -nocomplainencoding 0
      set data ""
      while {![eof $fd]} {
          append data [read $fd]
      }
      # Not reached with this test data
      puts [string length $data]
      close $fd
      
      I get:
      
      error reading "file6": illegal byte sequence
          while executing
      "read $fd"
          ("while" body line 2)
      etc.
      
      
      Expected behaviour:
      
      Read the data without raising error.
      
    5. foundin initialized to: "9.0a4, trunk"
    6. is_private initialized to: "0"
    7. login: "pointsman"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4ca203a8e925aecdd9419645f936bccf18cd6ea7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Severe"
    12. status initialized to: "Open"
    13. submitter initialized to: "pointsman"
    14. subsystem initialized to: "25. Channel System"
    15. title initialized to: "Tcl 9: "illegal byte sequence" ?!"
    16. type initialized to: "Bug"
  2. Ticket change [af5373e31b] (rid 207837) by jan.nijtmans on 2022-12-13 07:59:45:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2459926.83316896"
    3. closer changed to: "jan.nijtmans"
    4. icomment:
      Does [05414ca78462df68|this] clarify the situation?
      
      Referring to ticket [084ab982fe], you asked there:
      
      > Why do we have the fconfigure -strict mode at all? 
      
      Apparently, -strict is not the right option for you.
      
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Rejected"
    8. status changed to: "Closed"
  3. Ticket change [d0a74b4e24] (rid 207839) by jan.nijtmans on 2022-12-13 11:47:09:

    1. closedate changed to: "2459926.99107986"
    2. icomment:
      B.T.W. I know that "illegal byte sequence" is not the best error-message we can think of. But that's a limination of the channel code, that we are restricted to POSIX errors. This one is the closest to the truth.
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
  4. Ticket change [76c638ce2a] (rid 207857) by jan.nijtmans on 2022-12-16 09:42:45:

    1. closedate changed to: "2459929.90469735"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. severity changed to: "Minor"
  5. Ticket change [6bfb791677] (rid 207919) by jan.nijtmans on 2022-12-19 22:21:28:

    1. closer changed to: "nobody"
    2. icomment:
      As there seems no interest to check for noncharacters, remove those checks. See [cbaa5e70167db75b]
      
    3. login: "jan.nijtmans"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
  6. Ticket change [4ece7efe93] (rid 207925) by jan.nijtmans on 2022-12-20 09:46:27:

    1. closedate changed to: "2459933.90726556"
    2. closer changed to: "jan.nijtmans"
    3. icomment:
      Branch now merged to core-8-branch and trunk. Closing
      
    4. login: "jan.nijtmans"
    5. mimetype: "text/x-fossil-wiki"
    6. status changed to: "Closed"