Skip to content
Tcl Source Code History Of Ticket 219341ffff
Login

History Of Ticket 219341ffff

Artifacts Associated With Ticket 219341ffff

  1. Ticket change [5964fceeae] (rid 117975) by nobody on 2000-10-26 05:11:00:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      OriginalBugID: 5333 Bug
      Version: 8.3.1
      SubmitDate: '2000-05-03'
      LastModified: '2000-05-15'
      Severity: LOW
      Status: UnAssn
      Submitter: techsupp
      ChangedBy: hobbs
      OS: Windows 98
      FixedDate: '2000-10-25'
      ClosedDate: '2000-10-25'
      
      
      Name:
      doug edmunds
      
      ReproducibleScript:
      create a unicode file using \u2028 (unicode line separator)
      instead of LF, CR, or CRLF.  
      read file into tcl (with appropriate conversion)
      line separator will not be converted.
      
      ObservedBehavior:
      if file is a script, it will break due to run on of all 
      commands onto one line
      
      DesiredBehavior:
      on file read, \u2028 converted into CR, LF, or CRLF, as 
      appropriate for the system (unix, mac, dos/windows)
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.3.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: "Unicode line separator \u2028 not recognized"
    11. type initialized to: "RFE"
  2. Ticket change [dc0242c8b2] (rid 108059) by dgp on 2001-04-06 02:53:37:

    1. subsystem changed to: "25. Channel System"
  3. Ticket change [df912724d8] (rid 115032) by andreas_kupries on 2001-04-09 23:52:41:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      What is the mentioned "appropriate conversion" ?
      "utf-8" or "unicode" ?
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  4. Ticket change [7ef1356ba9] (rid 97491) by andreas_kupries on 2001-04-10 13:55:51:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=75003
      
      Doug Edmunds is <[email protected]>.
      
      Here his answer to my questions ___________________________
      
      Look at the attached utftest.tcl file. The "appropriate
      conversion" is the line:
      
          fconfigure $fileid -encoding unicode
      
      needed to correctly read-in a utf-16 file. A utf-8 file
      doesn't need any conversion
      
      Since you asked about this, I have reconstructed the issue, 
      using a Windows-based unicode editor (freeware) called SC
      Unipad. It is available at  http://www.sharmahd.com/unipad/
      
      With that program (which uses the unicode line-separator
      instead of CR, LF, LFCR) files can be saved in a multitude
      of unicode formats, include utf-8 and both utf-16 big endian
      and utf-16 little endian.
      
      Attached are 2 files, generated with that editor,
      appropriately named utf8test.txt and utf16text.txt.
      
      Also enclosed is a short tcl file which is supposed to open
      these files and print some info out to a tcl console. I used
      the console that opens with wish83.exe.
      
      Here's the issue: Instead of producing
      
      Total contents of the utf-8 file are:
      this is a file with
      multiple lines, which
      will be saved as
      utf-8
      
      It produces
      Total contents of the utf-8 file are:
      this is a file with�multiple lines, which�will be
      saved asâ?¨utf-8
      
      Similarly, using the 'appropriate conversion' the
      line-separator is lost, for the utf-16 file:
      
      this is a file with
      multiple lines, which
      will be saved as
      utf-16 (little endian)
      
      It looks like this:
      this is a file withmultiple lines, whichwill be saved
      asutf-16 (little
      endian)
      
      (but which copy-paste converts into question-marks, showing
      that the characters are really retained by tcl, but just are
      not being printed correctly):
      
      What copy-from-tcl-console paste-to-email produces:
      ?this is a file with?multiple lines, which?will be saved
      as?utf-16 (little
      endian)?
      
      I hope this helps.  Personally, I think there will always be
      problems until the underlying OS is based on unicode.
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  5. Add attachment "utf219341.tar.gz" [482a78ad63] (rid 99835) by andreas_kupries on 2001-04-10 13:55:52.

  6. Ticket change [6e3678486a] (rid 128832) by andreas_kupries on 2001-04-10 13:55:53:

    1. icomment:
      
      
      File Added - 5183: utf219341.tar.gz
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  7. Ticket change [01ecb32ada] (rid 119568) by andreas_kupries on 2001-04-10 13:58:48:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      I just noted that Doug talked about utf-16 little endian!
      I remember a bug report which complained that Tcl was not
      picking up on the first marker characters to auto-detect
      endianess in the utf-16 encoding. Possibly a reason for our
      problem too.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [96c7157926] (rid 106384) by andreas_kupries on 2001-04-11 21:41:30:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      Some relevant urls:
      
      http://www.unicode.org/
      http://www.unicode.org/unicode/reports/
      
      http://www.unicode.org/unicode/reports/tr13/
      (UAX #13: Unicode Newline Guidelines)
      
      http://www.unicode.org/unicode/reports/tr14/
      (UAX #14: Line Breaking Properties)
      
      http://www.unicode.org/unicode/reports/tr18/
      (UTR #18: Unicode Regular Expression Guidelines)
      
      http://www.unicode.org/unicode/reports/tr6/
      (UTS #6: A Standard Compression Scheme for Unicode)
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  9. Ticket change [5eec3b937f] (rid 115719) by andreas_kupries on 2001-04-12 22:23:50:

    1. icomment:
      Logged In: YES 
      user_id=75003
      
      More Urls:
      
      http://www.linuxdoc.org/HOWTO/Unicode-HOWTO.html
      http://www.unicode.org/unicode/reports/tr18/#End Of Line
      
      TR18 talks about REGEXes and UNICODE.
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  10. Ticket change [af257c774e] (rid 97758) by msofer on 2006-03-12 02:19:28:

    1. foundin changed to: "obsolete: 8.4.12"
    2. icomment:
      Logged In: YES 
      user_id=148712
      
      status? Tried the attached example in 8.4.9 and HEAD; the
      output is still wrong, but different from what is described
      in the comments: the line separators are printed as white
      space, but they do not taken as whitespace by tcl:
      
      % set x "a\u2028b"
      a b
      % llength $x
      1
      % encoding system
      utf-8
      
      
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. username: "msofer"
  11. Ticket change [8640a99095] (rid 131469) by msofer on 2006-03-12 02:33:17:

    1. icomment:
      Logged In: YES 
      user_id=148712
      
      Chat quotes:
      
      [16:29]dgpThe Tcl parser recognizes only 5 characters as
      word- or list-element- breaking white space.
      [16:30]migueldon: I know what it does; the question if it
      should incorporate the newer ones. And if not, that bug
      should be closed as "won't fix"
      [16:31]dgpthat's distinct from [string is space] and
      possibly other things like regexp
      [16:31]dgpclose it "won't fix"
      [16:31]dgpor recast as an RFE
      [16:31]dgplikely aimed at 9.0
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  12. Ticket change [af023e91f9] (rid 97736) by dkf on 2006-03-12 04:45:42:

    1. assignee changed to: "msofer"
    2. priority changed to: "1 Zero"
  13. Ticket change [ed500af5b8] (rid 103856) by msofer on 2006-03-12 21:22:58:

    1. foundin changed to: "None"
    2. icomment:
      
      
      data_type - 360894
      
      Logged In: YES 
      user_id=148712
      
      Changing to RFE. 
      
      Note that the conversions are done properly in 8.4.9 (and
      presumably every later Tcl): reading in the utf16 file and
      passing it through proc u2a (http://wiki.tcl.tk/515) shows
      
      \uFEFFthis is a file with\u2028multiple lines,
      which\u2028will be saved as\u2028utf-16 (little endian)\u2028
      
      as it should.
      
      So the RFE is for Tcl's parser to recognise these unicode
      whitespaces. Category changed accordingly.
      
      
    3. login: "msofer"
    4. mimetype: "text/plain"
    5. priority changed to: "5 Medium"
    6. subsystem changed to: "45. Parsing and Eval"
    7. username: "msofer"
  14. Ticket change [820c6c40cd] (rid 117154) by msofer on 2006-09-30 00:40:34:

    1. assignee changed to: "andreas_kupries"