Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a3b23d5ecc93da1d658368b950ff28170f3da25
Ticket: 219210ffffffffffffffffffffffffffffffffff
fcopy does not respect encodings
User & Date: nobody on 2000-10-26 05:03:38
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 3662 Bug
    Version: 8.2.2
    SubmitDate: '1999-11-23'
    LastModified: '1999-12-07'
    Severity: SER
    Status: Assigned
    Submitter: techsupp
    ChangedBy: hobbs
    OS: All
    FixedDate: '2000-10-25'
    ClosedDate: '1999-12-06'
    
    
    Name:
    Nikolai Saoukh
    
    set out [open k.txt w]
    fconfigure $out -encoding koi8-r
    puts $out "\u0410\u0410"
    close $out
    
    set in [open k.txt r]
    fconfigure $in -encoding koi8-r
    
    set out [open u.txt w]
    fconfigure $out -encoding utf-8
    
    fcopy $in $out
    
    close $in
    close $out
    
    
    It's not certain whether this is an RFE or bug, as the fcopy
    man page states that it only pays heed to the -translation
    option, not to -encoding.  This could be a bug, since -encoding
    came after fcopy was originally written.  The work-around is to
    replace the above fcopy with:
        puts $out [read $in]
    although there is no callback capability then. 
    -- 12/07/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "63. (unused)"
  10. title changed to: "fcopy does not respect encodings"
  11. type changed to: "Bug"