Skip to content
Tcl Source Code History Of Ticket eabcbd08274f2d22
Login

History Of Ticket eabcbd08274f2d22

Artifacts Associated With Ticket eabcbd08274f2d22

  1. Ticket change [08ca84a852] (rid 213107) by pooryorick on 2023-04-16 23:02:06:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In the script below, after the first [read] returns an encoding error, the
      channel is reconfiguredi to <code>-encoding iso8859-1</code>, and the
      subsequent [read] should return character <code>\x81</code>, but instead it
      repeats the error:
      
      <blockquote><code><verbatim>
      set res {}
      set chan [file tempfile]
      fconfigure $chan -encoding binary
      # \x81 is invalid in utf-8. -eofchar is not detected, because it comes later.
      puts -nonewline $chan A\x81\x1A
      flush $chan
      seek $chan 0
      fconfigure $chan -encoding utf-8 -buffering none -eofchar \x1A \
      -translation lf -profile strict
      catch {read $chan} cres
      puts $cres ;#-> error reading "file*": invalid or incomplete multibyte or wide character
      puts [list eof [eof $chan]] ;#-> eof 1
      puts [list position [tell $chan]] ;#-> position 1
      chan configure $chan -encoding iso8859-1
      catch {read $chan} cres
      puts $cres] ;#-> error reading "file*": invalid or incomplete multibyte or wide character
      </verbatim></code></blockquote>
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. private_contact initialized to: "2b2275eab1118e1fab0016cf1c5702893c6af86c"
    9. resolution initialized to: "None"
    10. severity initialized to: "Important"
    11. status initialized to: "Open"
    12. submitter initialized to: "pooryorick"
    13. subsystem initialized to: "- New Builtin Commands"
    14. title initialized to:
      [read] error persists on channel with strict encoding after encoding is changed to binary
      
    15. type initialized to: "Bug"
  2. Ticket change [9c0bb685db] (rid 213115) by pooryorick on 2023-04-16 23:11:36:

    1. icomment: "Fixed in [3fa3d48874]."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [53b75900bd] (rid 213116) by pooryorick on 2023-04-16 23:20:09:

    1. comment changed to:
      In the script below, after the first [read] returns an encoding error, the
      channel is reconfigured to <code>-encoding iso8859-1</code>, and the
      subsequent [read] should return character <code>\x81</code>, but instead it
      repeats the error:
      
      <blockquote><code><verbatim>
      set res {}
      set chan [file tempfile]
      fconfigure $chan -encoding binary
      # \x81 is invalid in utf-8. -eofchar is not detected, because it comes later.
      puts -nonewline $chan A\x81\x1A
      flush $chan
      seek $chan 0
      fconfigure $chan -encoding utf-8 -buffering none -eofchar \x1A \
      -translation lf -profile strict
      catch {read $chan} cres
      puts $cres ;#-> error reading "file*": invalid or incomplete multibyte or wide character
      puts [list eof [eof $chan]] ;#-> eof 1
      puts [list position [tell $chan]] ;#-> position 1
      chan configure $chan -encoding iso8859-1
      catch {read $chan} cres
      puts $cres] ;#-> error reading "file*": invalid or incomplete multibyte or wide character
      </verbatim></code></blockquote>
      
    2. login: "pooryorick"
    3. mimetype: "text/plain"
  4. Ticket change [f93f30508b] (rid 213304) by pooryorick on 2023-04-19 07:14:01:

    1. assignee changed to: "pooryorick"
    2. login: "pooryorick"
    3. mimetype: "text/plain"
    4. resolution changed to: "Fixed"
  5. Ticket change [7095a50a45] (rid 213600) by pooryorick on 2023-04-21 23:02:25:

    1. closedate changed to: "2460056.46001573"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. status changed to: "Closed"