Artifacts Associated With Ticket 219288
Ticket change [e0a9b50aa5] (rid 115242) by nobody on 2000-10-26 05:10:03:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- comment initialized 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 initialized to: "obsolete: 8.1"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "57. zlib"
- title initialized to: "Tcl 8.1 writes incorrect UTF-16 files"
- type initialized to: "Bug"
Ticket change [84461a4837] (rid 117526) by dgp on 2001-04-06 03:08:43:
- subsystem changed to: "10. Objects"
Ticket change [7e9b439984] (rid 97442) by dkf on 2001-10-07 18:56:16:
- assignee changed to: "hobbs"
- icomment:
Logged In: YES user_id=79902 Probably easier to do it from [fconfigure] with some special code to notice when an encoding that needs a BOM is selected and write it (into our output buffer) at that point.
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
Ticket change [fe2c0bd344] (rid 108533) by andreas_kupries on 2001-10-09 22:19:03:
- icomment:
Logged In: YES user_id=75003 Unconditional write, even if the channel is not a file, but a socket, or pipe ? See also #219289.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [ed2a2de940] (rid 103833) by hobbs on 2001-10-10 05:19:27:
- closedate changed to: "2001-10-09T22:19:27"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 This is something for the application developer, not Tcl, to write. The only thing that Tcl doesn't handle, and isn't really requested here, is the ability to write out utf-16 in a different byte order than the system one. The read-side (219289) is slightly different, in that Tcl should provide the ability to read utf-16 from any byte- order.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
- username: "hobbs"