Skip to content
Tcl Source Code History Of Ticket 219288
Login

History Of Ticket 219288

Artifacts Associated With Ticket 219288

  1. Ticket change [e0a9b50aa5] (rid 115242) by nobody on 2000-10-26 05:10:03:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. 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)
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.1"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "nobody"
    9. subsystem initialized to: "57. zlib"
    10. title initialized to: "Tcl 8.1 writes incorrect UTF-16 files"
    11. type initialized to: "Bug"
  2. Ticket change [84461a4837] (rid 117526) by dgp on 2001-04-06 03:08:43:

    1. subsystem changed to: "10. Objects"
  3. Ticket change [7e9b439984] (rid 97442) by dkf on 2001-10-07 18:56:16:

    1. assignee changed to: "hobbs"
    2. 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.
      
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. username: "dkf"
  4. Ticket change [fe2c0bd344] (rid 108533) by andreas_kupries on 2001-10-09 22:19:03:

    1. 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.
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  5. Ticket change [ed2a2de940] (rid 103833) by hobbs on 2001-10-10 05:19:27:

    1. closedate changed to: "2001-10-09T22:19:27"
    2. closer changed to: "hobbs"
    3. 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.
      
      
    4. login: "hobbs"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Closed"
    8. username: "hobbs"