Skip to content
Tcl Source Code History Of Ticket a7a89d422a
Login

History Of Ticket a7a89d422a

Artifacts Associated With Ticket a7a89d422a

  1. Ticket change [95a0384550] (rid 212911) by pooryorick on 2023-04-14 18:25:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      In the following script, the third line of data in the channel contains a byte
      sequence that is not valid utf-8.  [gets] should successfully return two lines
      before returning an error, but it returns an error instead of returning the
      second line:
      
      <blockquote><code><verbatim>
      set chan [file tempfile]
      chan configure $chan -translation binary
      # This is not valid UTF-8
      puts $chan hello\nAB\nCD\xc0\x40EF\nGHI
      flush $chan
      seek $chan 0
      
      chan configure $chan -encoding utf-8 -profile strict
      gets $chan
      gets $chan
      </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:
      Under strict encoding, [gets] returns an error instead of returning the second line
      
    15. type initialized to: "Bug"
  2. Ticket change [5b53efe494] (rid 212925) by pooryorick on 2023-04-15 11:57:23:

    1. assignee changed to: "pooryorick"
    2. icomment:
      Fixed in [d481d08ed9].  This commit also ensures that position in file does not change when <code>gets</code> returns an error.
      
    3. login: "pooryorick"
    4. mimetype: "text/x-fossil-wiki"
    5. resolution changed to: "Fixed"
    6. status changed to: "Pending"
  3. Ticket change [1a85560c66] (rid 213003) by jan.nijtmans on 2023-04-16 09:31:31:

    1. icomment:
      This change broke the build on Windows, see: [https://github.com/tcltk/tcl/actions/runs/4706656812/jobs/8348035149]
      
      2nd remark: Tcl 8.7 has "-profile strict" too, so this should be backported to 8.7 too. Even better: you should develop the fix on 8.7 and forward-merge to 9.0 then.
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "None"
    5. status changed to: "Open"
  4. Ticket change [0704959a8c] (rid 213012) by pooryorick on 2023-04-16 13:14:12:

    1. icomment:
      I believe commit [7015a9d04911e483] fixes the issue with 75.14 on Windows.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  5. Ticket change [bb0c9f2ff9] (rid 213117) by pooryorick on 2023-04-16 23:24:54:

    1. icomment:
      I am opposed to the release of Tcl 8.7 because it has a different alphabet for
      string values than Tcl 9 does, and releasing it will do more harm than good.
      Therefore I'm unlikely to spend much time maintaining it.  I'd rather see it
      die an immediate death.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [da30571786] (rid 213174) by apnadkarni on 2023-04-18 02:52:46:

    1. icomment:
      As of commit [] on trunk, io-75.{14,15} are still failing on Windows.
      
      
      ```
      ==== io-75.14 [gets] succesfully returns lines prior to error
      
              invalid utf-8 encoding [gets] continues in non-strict mode after error FAILED
      ==== Contents of test case:
      
          lappend res [gets $chan]
          lappend res [gets $chan]
          set status [catch {gets $chan} cres copts]
          lappend res $status $cres
          chan configure $chan -profile tcl8
          lappend res [gets $chan]
          lappend res [gets $chan]
          close $chan
          return $res
      
      ---- Result was:
      {a\x0D} {b\x0D} 1 {error reading "file1a8aec7b500": invalid or incomplete multibyte or wide character} {c\xC0\x0D} {d\x0D}
      ---- Result should have been (glob matching):
      a b 1 {error reading "*": invalid or incomplete multibyte or wide character} c\xC0 d
      ==== io-75.14 FAILED
      
      
      
      ==== io-75.15 invalid utf-8 encoding strict
          gets does not hang
          gets succeeds for the first two lines FAILED
      ==== Contents of test case:
      
          #Now try to read it with [gets]
          fconfigure $chan -encoding utf-8 -profile strict
          lappend res [gets $chan]
          lappend res [gets $chan]
          set status [catch {gets $chan} cres copts]
          lappend res $status $cres
          set status [catch {gets $chan} cres copts]
          lappend res $status $cres
              chan configure $chan -translation binary
              set data [read $chan 4]
              foreach char [split $data {}] {
                      scan $char %c ord
                      lappend res [format %x $ord]
              }
          fconfigure $chan -encoding utf-8 -profile strict
              lappend res [gets $chan]
              lappend res [gets $chan]
          return $res
      
      ---- Result was:
      hello AB 1 {error reading "file1a8aecf4570": invalid or incomplete multibyte or wide character} 1 {error reading "file1a8aecf4570": invalid or incomplete multibyte or wide character} 43 44 c0 40 {EF\x0D} {GHI\x0D}
      ---- Result should have been (glob matching):
      hello AB 1 {error reading "*": invalid or incomplete multibyte or wide character} 1 {error reading "*": invalid or incomplete multibyte or wide character} 43 44 c0 40 EF GHI
      ==== io-75.15 FAILED
      
      ```
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-markdown"
  7. Ticket change [dbf90cb72e] (rid 213175) by apnadkarni on 2023-04-18 02:53:42:

    1. icomment:
      Oops, last comment commit should link should have been [5995ca9b6c]
      
    2. login: "apnadkarni"
    3. mimetype: "text/x-fossil-plain"
  8. Ticket change [8803f06fe5] (rid 213181) by apnadkarni on 2023-04-18 05:20:19:

    1. icomment: "Fixed, I think, by [079d2d5162]. Please review."
    2. login: "apnadkarni"
    3. mimetype: "text/x-fossil-plain"
  9. Ticket change [ef144bfe75] (rid 213182) by jan.nijtmans on 2023-04-18 06:14:27:

    1. icomment:
      > @pouryorick wrote:
      <pre>
      I am opposed to the release of Tcl 8.7 ...
      </pre>
      
      Well, I'm opposed to the release of Tcl 9.0 while it still contains testcase failures .... ;-)      (So, many thanks, @ashok!)
      
    2. login: "jan.nijtmans"
    3. mimetype: "text/x-fossil-wiki"
  10. Ticket change [a5634f9359] (rid 213305) by pooryorick on 2023-04-19 07:14:31:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
    3. resolution changed to: "Fixed"
  11. Ticket change [89ad33fccb] (rid 213306) by pooryorick on 2023-04-19 07:15:28:

    1. login: "pooryorick"
    2. mimetype: "text/plain"
  12. Ticket change [a629dee7d2] (rid 213602) by pooryorick on 2023-04-21 23:04:00:

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