Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f0645e1d40fa16c6dceb42dcf53156c893db9dc5c956d2183e1987c6909f060b
Ticket: c2f368c2015a99420ae7beb47d72dfb7981b60ce
io-52.20.1 test failure
User & Date: dgp on 2023-11-17 16:15:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-plain"
  4. comment changed to:
    ==== io-52.20.1 TclCopyChannel & read encoding error & tell position FAILED
    ==== Contents of test case:
    
        # binary to encoding => the input has to be
        # in utf-8 to make sense to the encoder
    
        set in  [open $path(utf8-fcopy.txt) r]
        set out [open $path(kyrillic.txt) w]
    
        # Using "-encoding ascii" means reading the "Á" gives an error
        fconfigure $in  -encoding ascii -profile strict
        fconfigure $out -encoding koi8-r -translation lf
    
        set l {}
            # should fail, so 1 is added
        lappend l [catch {fcopy $in $out}]
            # should be at position 1, after the first correct byte, so 1 is read.
        lappend l [tell $in]
        # not sure, if flush required, but anyway
        flush $out
            # should be at position 1, after the first correct byte, so 1 is written.
        lappend l [tell $out]
    
    ---- Result was:
    1 1 0
    ---- Result should have been (exact matching):
    1 1 1
    ==== io-52.20.1 FAILED
    
  5. foundin changed to: "trunk"
  6. is_private changed to: "0"
  7. login: "dgp"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "8e2300e85be5dd1445b9666eb9429055951e33be"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "dgp"
  14. subsystem changed to: "25. Channel System"
  15. title changed to: "io-52.20.1 test failure"
  16. type changed to: "Bug"