Skip to content
Tcl Source Code History Of Ticket 1165752
Login

History Of Ticket 1165752

Artifacts Associated With Ticket 1165752

  1. Ticket change [5de20983ca] (rid 115545) by andygoth on 2005-03-18 04:44:06:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The "unicode" encoding provides something like
      utf-16ne, where ne is native endianness.  This isn't
      very useful, and it requires scripts to specially
      process byte arrays (swap byte order, strip/add BOM)
      passing into [encoding convertfrom] and out of
      [encoding convertto].
      
      What's needed are "utf-16", "utf-16be", and "utf-16le"
      encodings.  By all means, keep "unicode" as it is to
      avoid breaking stuff.  But these new encodings will
      more closely adhere with the standards of the same name.
      
      "utf-16" will correctly handle an initial BOM
      (byte-order mark):  If present, it is stripped but
      affects the byte ordering of the rest of the string. 
      If absent, big-endian order is assumed.  If found in
      the middle of the string, it is taken as ZWNBSP
      (zero-width non-breaking space).  And when translating
      to "utf-16", an initial BOM is prepended.
      
      "utf-16le" and "utf-16be" will assume little-endian and
      big-endian byte orderings, respectively, and will treat
      BOMs as ZWNBSPs.
      
      (Or perhaps I have misread the standard.)
      
      I have seen comments to the effect that the BOM should
      never be stripped because it conveys information (the
      byte ordering) that may be useful at the script level.
       But why would the programmer want to know the byte
      ordering of a utf-16 string?  I can't think of a good
      reason.  All I can come up with is, knowing the byte
      order allows the programmer to decode the utf-16 string
      in multiple chunks, only the first of which contains
      BOM.  But this is invalid because the programmer can't
      legally seek to a random byte location and must
      therefore decode everything as a single unit.  So I
      conclude that the BOM is part of the encoding and not
      the payload.
      
    4. foundin initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "andygoth"
    9. subsystem initialized to: "16. Commands A-H"
    10. title initialized to: "New encodings: utf-16, utf-16be, utf-16le"
    11. type initialized to: "RFE"
  2. Ticket change [ac81329d4d] (rid 101304) by dkf on 2005-03-18 12:12:05:

    1. assignee changed to: "msofer"
    2. subsystem changed to: "10. Objects"
  3. Ticket change [1f3c2da3c2] (rid 91113) by msofer on 2005-04-28 03:38:24:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      Not my field of expertise ... passing the ball around.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  4. Ticket change [f020eb614c] (rid 109131) by hobbs on 2005-05-31 08:49:11:

    1. assignee changed to: "hobbs"
  5. Ticket change [63ee4f95de] (rid 92664) by dgp on 2005-10-03 23:04:40:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Want to add these to TIP 258 ?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [8f8780ccd4] (rid 120283) by hobbs on 2005-10-04 00:03:03:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      You can, but I don't thinik that these require a TIP.  I
      wrote up something about it on tcl-core a while back, and
      the general response was "just do it".  I hit a problem with
      a certain issue of byte swapping at one point, which is why
      I didn't commit ... need to revisit it.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. priority changed to: "7 High"
    5. username: "hobbs"
  7. Ticket change [df07263b63] (rid 114950) by dgp on 2005-10-04 01:24:22:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      sounds fine to me; I;ll leave them alone then.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  8. Ticket change [e5d2052b80] (rid 104193) by afredd on 2006-12-07 23:38:26:

    1. icomment:
      Logged In: YES 
      user_id=1386588
      Originator: NO
      
      *bump*
      
      Am curious - is this likely to make it for 8.5?
      Would definately be useful :^)
      
      Additionally, support for utf32le & utf32be makes sense.
      Also what would the behaviour be for reading in characters
      outside Tcl's UCS-2 character set?
      
      If there's a patch floating about, i'm willing to do some
      additional testing if it's needed.
      
      Cheers, afredd.
      
      
      
    2. login: "afredd"
    3. mimetype: "text/plain"
    4. username: "afredd"
  9. Ticket change [5d050d6b74] (rid 115388) by andygoth on 2008-12-18 08:07:42:

    1. icomment:
      Any news on this feature request?  Jeff, did you ever find your old code?
      
      
    2. login: "andygoth"
    3. mimetype: "text/plain"
    4. username: "andygoth"
  10. Ticket change [3af5c984ee] (rid 112648) by andygoth on 2010-06-23 03:37:07:

    1. icomment:
      Re-bump.  Any progress?
      
      
    2. login: "andygoth"
    3. mimetype: "text/plain"
    4. username: "andygoth"