Artifacts Associated With Ticket 219341ffffffffff
Ticket change [5964fceeae] (rid 117975) by nobody on 2000-10-26 05:11:00:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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)
- foundin initialized to: "obsolete: 8.3.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: "Unicode line separator \u2028 not recognized"
- type initialized to: "RFE"
Ticket change [dc0242c8b2] (rid 108059) by dgp on 2001-04-06 02:53:37:
- subsystem changed to: "25. Channel System"
Ticket change [df912724d8] (rid 115032) by andreas_kupries on 2001-04-09 23:52:41:
- icomment:
Logged In: YES user_id=75003 What is the mentioned "appropriate conversion" ? "utf-8" or "unicode" ?
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [7ef1356ba9] (rid 97491) by andreas_kupries on 2001-04-10 13:55:51:
- assignee changed to: "andreas_kupries"
- 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.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
Add attachment "utf219341.tar.gz" [482a78ad63] (rid 99835) by andreas_kupries on 2001-04-10 13:55:52.
Ticket change [6e3678486a] (rid 128832) by andreas_kupries on 2001-04-10 13:55:53:
- icomment:
File Added - 5183: utf219341.tar.gz
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [01ecb32ada] (rid 119568) by andreas_kupries on 2001-04-10 13:58:48:
- 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.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [96c7157926] (rid 106384) by andreas_kupries on 2001-04-11 21:41:30:
- 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)
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [5eec3b937f] (rid 115719) by andreas_kupries on 2001-04-12 22:23:50:
- 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.
- login: "andreas_kupries"
- mimetype: "text/plain"
- username: "andreas_kupries"
- icomment:
Ticket change [af257c774e] (rid 97758) by msofer on 2006-03-12 02:19:28:
- foundin changed to: "obsolete: 8.4.12"
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
Ticket change [8640a99095] (rid 131469) by msofer on 2006-03-12 02:33:17:
- 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
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [af023e91f9] (rid 97736) by dkf on 2006-03-12 04:45:42:
- assignee changed to: "msofer"
- priority changed to: "1 Zero"
Ticket change [ed500af5b8] (rid 103856) by msofer on 2006-03-12 21:22:58:
- foundin changed to: "None"
- 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.
- login: "msofer"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- subsystem changed to: "45. Parsing and Eval"
- username: "msofer"
Ticket change [820c6c40cd] (rid 117154) by msofer on 2006-09-30 00:40:34:
- assignee changed to: "andreas_kupries"