Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e0a9b50aa5cde9a2c3455f56aec9086c01e397e1
Ticket: 219288ffffffffffffffffffffffffffffffffff
Tcl 8.1 writes incorrect UTF-16 files
User & Date: nobody on 2000-10-26 05:10:03
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2128 Bug
    Version: 8.1
    SubmitDate: '1999-05-26'
    LastModified: '1999-10-21'
    Severity: MED
    Status: UnAssn
    Submitter: pat
    ChangedBy: hobbs
    RelatedBugIDs: 2129
    OS: Linux
    OSVersion: Debian 2.0
    Machine: Other
    FixedDate: '2000-10-25'
    ClosedDate: '2000-10-25'
    
    
    Name:
    Victor Wagner
    
    ReproducibleScript:
    fconfigure stdout -encoding unicode
        puts "some stuff"
    
    ObservedBehavior:
    According to UTF-16 standard, any UTF-16 file should begin with 
        Unicode character "\uFEFF", which allows unicode reading software to
        determine byte order of writing software correctly.
        Any occurence of this 
        Tcl doesn't automatically write this character. I haven't tested it
        on machines with different byte order, but I suspect that unicode file
        written on Sparc wouldn't be readable on Intel and vice versa.
    
    DesiredBehavior:
    Upon first write of file with encoding set to unicode (or directly at
        the
        moment of fconfigure) tcl should write "\uFEFF" to file. Extra \uFEFF
        shouldn't harm becouse this symbol is defined in UNICODE as zero-width
        non-breakable space (effectively noop)
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.1"
  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: "57. zlib"
  10. title changed to: "Tcl 8.1 writes incorrect UTF-16 files"
  11. type changed to: "Bug"