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
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- 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) - foundin changed to: "obsolete: 8.1"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "57. zlib"
- title changed to: "Tcl 8.1 writes incorrect UTF-16 files"
- type changed to: "Bug"