Skip to content
Tcl Source Code History Of Ticket 1bedc53c8cb878f0
Login

History Of Ticket 1bedc53c8cb878f0

Artifacts Associated With Ticket 1bedc53c8cb878f0

  1. Ticket change [d3aa224dd6] (rid 207992) by pooryorick on 2022-12-27 21:51:54:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In trunk, test io-12.9, "ReadChars: multibyte chars split FAILED" does not result in an error when the test is changed so that the channel is configured with -strictencdoing 1:
      
      <code><verbatim>
      test io-12.9 {ReadChars: multibyte chars split} -body {
          set f [open $path(test1) w]
          fconfigure $f -translation binary
          puts -nonewline $f [string repeat a 9]\xC2
          close $f
          set f [open $path(test1)]
          fconfigure $f -strictencoding 1 -encoding utf-8 -buffersize 10
          set in [read $f]
          close $f
          scan [string index $in end] %c
      } -cleanup {
          catch {close $f}
      } -result 194
      </verbatim></code>
      
      This is incorrect.  An error should be returned.
      
      If a second [read] is added, it returns an error:
      
      <code><verbatim>
      test io-12.9 {ReadChars: multibyte chars split} -body {
          set f [open $path(test1) w]
          fconfigure $f -translation binary
          puts -nonewline $f [string repeat a 9]\xC2
          close $f
          set f [open $path(test1)]
          fconfigure $f -strictencoding 1 -encoding utf-8 -buffersize 10
          set in [read $f]
          read $f
          close $f
          scan [string index $in end] %c
      } -cleanup {
          catch {close $f}
      } -result 194
      </verbatim></code>
      
      
      This is also incorrect, because [read $chan] is defined to read all characters
      up until the end of the channel, implying that all data on the channel has been
      correctly read.
      
      The first [read] should return an error.
      
    5. is_private initialized to: "0"
    6. login: "pooryorick"
    7. priority initialized to: "5 Medium"
    8. resolution initialized to: "None"
    9. severity initialized to: "Severe"
    10. status initialized to: "Open"
    11. submitter initialized to: "pooryorick"
    12. subsystem initialized to: "25. Channel System"
    13. title initialized to:
      synchronous [read] with -strictencoding does not produce an error on invalid input
      
    14. type initialized to: "Bug"
  2. Ticket change [c9fcfde7d8] (rid 208062) by jan.nijtmans on 2022-12-29 23:39:48:

    1. assignee changed to: "jan.nijtmans"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. severity changed to: "Important"
  3. Ticket change [5cd1b947ca] (rid 208070) by pooryorick on 2022-12-30 20:48:51:

    1. icomment:
      Report. [b8f575aa2398b0e4] was closed as a duplicate of this report.  Branch [https://core.tcl-lang.org/tcl/timeline?r=py-b8f575aa23&unhide|py-b8f575aa23] is dedicated to this issue.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [3ad6928f35] (rid 208189) by pooryorick on 2023-01-16 20:33:00:

    1. closedate changed to: "2459961.35625825"
    2. closer changed to: "pooryorick"
    3. icomment:
      Closed as duplicate of [b8f575aa2398b0e4]."Tcl 9: eof erroneously flagged with not reported encoding read error"
      
    4. login: "pooryorick"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Duplicate"
    7. status changed to: "Closed"
  5. Ticket change [9a3bafa455] (rid 208197) by jan.nijtmans on 2023-01-17 08:22:02:

    1. closer changed to: "nobody"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Pending"
  6. Ticket change [3a53c0d261] (rid 210518) by jan.nijtmans on 2023-03-21 17:51:12:

    1. closedate changed to: "2460025.24389949"
    2. closer changed to: "jan.nijtmans"
    3. foundin changed to: "8.7"
    4. icomment: "Fixed [18437bdc82d0152c|here]"
    5. login: "jan.nijtmans"
    6. mimetype: "text/x-fossil-wiki"
    7. resolution changed to: "Fixed"
    8. status changed to: "Closed"