Skip to content
Tcl Source Code History Of Ticket 2910093fffffffff
Login

History Of Ticket 2910093fffffffff

Artifacts Associated With Ticket 2910093fffffffff

  1. Ticket change [4e3967699d] (rid 127188) by a_kovalenko on 2009-12-07 16:13:53:

    1. assignee initialized to: "nijtmans"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      There is a byte-order mark mechanism in Unicode encodings, used to identify the byte-order of UCS2, UCS4 etc, and to identify that the stream IS utf-8.
      When a string is converted from utf-8 (or from "unicode", which is UCS2 in native byte order), byte-order mark becomes \uFEFF and appears in the output.
      
      It's theoretically useful for applications that have to distinguish between marked and unmarked files or strings, but it creates obscure difficulties for all other applications. I don't know what should be done (ignoring BOM when converting from utf-8 may be not a good option), but we need at least _some_ way to convert data from unicode/utf-8 that doesn't leave byte order mark in the internal string representation.
      
      Maybe some new encoding(s) should be introduced, like unicode-bom (autodetecting between utf-8,ucs2-LE/BE etc on input, stripping BOM on input, appending BOM on output). I'm not sure what is to be done (and even unsure that the problem is to be solved on TCL level).
      
    4. foundin initialized to: "obsolete: 8.6b1"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "a_kovalenko"
    10. subsystem initialized to: "44. UTF-8 Strings"
    11. title initialized to: "Byte-order mark symbol is decoded as \uFEFF"
    12. type initialized to: "RFE"
  2. Ticket change [ec301dc35a] (rid 103672) by a_kovalenko on 2009-12-07 23:33:39:

    1. icomment:
      On the second thought, maybe it should be handled when reading the utf8-encoded channel; something like fconfigure $fh -ignorebom true, or -bomchar \uFEFF, to skip BOM when reading the file. Other conversions done on the channel level (CR/LF/EOF) are "of the same spirit", so to speak.
      
      
      
    2. login: "a_kovalenko"
    3. mimetype: "text/plain"
    4. username: "a_kovalenko"
  3. Ticket change [17231c160a] (rid 124833) by dkf on 2009-12-08 18:36:08:

    1. assignee changed to: "dgp"
    2. foundin changed to: "None"
    3. icomment:
      
      
      data_type - 360894
      
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. subsystem changed to: "10. Objects"
    7. username: "dkf"
  4. Ticket change [367c521a4d] (rid 107111) by dgp on 2009-12-08 20:45:23:

    1. icomment:
      I like the channel options approach better myself.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [4f4c70e082] (rid 125804) by dgp on 2009-12-08 20:45:24:

    1. assignee changed to: "andreas_kupries"
    2. subsystem changed to: "25. Channel System"