Artifacts Associated With Ticket 1442305fffffffffffffffffffffffffffffffff
Ticket change [76d03aba1c] (rid 105647) by nobody on 2006-03-03 08:10:26:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
With 8.4.12, I see the following error (W2k, WinXP): % info patchlevel 8.4.12 % fconfigure stdout -encoding cp437 ?fconfigure stdout -encoding ???
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "nobody"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "fconfigure stdout -encoding error"
- type initialized to: "Bug"
Ticket change [ae650ef165] (rid 101631) by dkf on 2006-03-03 16:27:59:
- assignee changed to: "andreas_kupries"
- foundin changed to: "obsolete: 8.4.12"
- subsystem changed to: "25. Channel System"
Ticket change [f6b0a711a1] (rid 130337) by jcw on 2006-03-03 22:04:28:
- icomment:
Logged In: YES user_id=1983 Might be the same issue as reported here: http://www.equi4.com/cgi-bin/cvstrac/tclkit/tktview?tn=7
- login: "jcw"
- mimetype: "text/plain"
- username: "jcw"
- icomment:
Ticket change [7a6e9bc768] (rid 90319) by hobbs on 2006-03-04 00:50:19:
- assignee changed to: "patthoyts"
- icomment:
Logged In: YES user_id=72656 I suspect this has to do with the changes from 8.4.11 to 8.4.12 that added Unicode console support on Windows NT. This screwed up Expect for Windows, but it turned out that that just required adopting stacked channels' encodings. Is it possible that this has lost us the ability to modify the std channel encoding?
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "hobbs"
Ticket change [7457990075] (rid 105190) by davygrvy on 2006-03-04 02:17:32:
- icomment:
Logged In: YES user_id=7549 <davygrvy> here's my thoughts.. (mostly off the cuff) As the channel driver determines it's encoding based on the system it is running under, allowing it to be changed is not good. It isn't good cause the channel driver code isn't told about the change <ijchain> <tclguy> ok, context is that the Windows unicode console patch may be problematic (again) <davygrvy> it'd be nice if channel drivers got encoding change notices from the generic layer <davygrvy> just the unicode ones, anyways <davygrvy> so it can know WriteConsoleA or WriteConsoleW <davygrvy> calling WriteConsoleW with non-unicode after 'fconfigure -encoding cp437' is the trap it falls into <davygrvy> the channel driver didn't know about the switch
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3df76c59f4] (rid 121186) by davygrvy on 2006-03-04 10:36:28:
- icomment:
Logged In: YES user_id=7549 <tclguy@Jabber> we can keep the W perhaps, but we need a conversion to desired encoding, no? The problem as I see it is that we don't really know what this buffer is that comes into the Tcl_DriverOutputProc. We could do an upconversion to unicode in the TDOP, but we'd take a performance hit asking what our channels encoding is, then perform the upcast. This is what I don't understand.. Why do we (as a channel driver) not tell the generic ourselves what we are? I mean, we know what the console's codepage is and how to change it (G|S)etConsoleCP. <pipedream> What if an optional new entry into the driver structure for version 5 existed so the generic layer can hook into us so we can apply rules for encodings? That'd be sweet.. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/unicode_81rn.asp Oh, you want EBCDIC? SetConsoleCP(37); failed, so I'll return TCL_ERROR so [fconfigure] barfs back. Oh.. you want unicode, set flag so our TDOP will use WriteConsoleW, return TCL_OK to allow [fconfigure] to change the generic side. </pipedream> Would that work? How much code change is that?
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [3e4c303ab5] (rid 121237) by dgp on 2006-03-10 11:48:25:
- icomment:
Logged In: YES user_id=80530 any resolution possible for 8.4.13 / 8.5a4 ?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [55412c3bec] (rid 94101) by davygrvy on 2006-03-10 14:42:17:
- icomment:
Logged In: YES user_id=7549 this is not an easy fix. A temp fix might be to not let [fconfigure -encoding] modify a console channel at all. But to do that, we still need to add a new hook vector to Tcl_ChannelType
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [74970cc0ef] (rid 105226) by dgp on 2006-03-10 22:02:39:
- icomment:
Logged In: YES user_id=80530 ok, then, is the bug severe enough that we should consider reverting the change that introduced it?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [c2eef1e5bc] (rid 111568) by davygrvy on 2006-03-11 04:57:35:
- icomment:
Logged In: YES user_id=7549 That's a tough question.. I do want to see the console channel driver using unicode for WriteConsoleW() on the systems that allow it. This is a very good thing. revert would be the safe descision for the moment until a hook method is constructed to keep the driver in sync with the generic layer.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [a53dccde5a] (rid 110337) by hobbs on 2006-03-29 05:40:25:
- closedate changed to: "2006-03-28T22:40:25"
- closer changed to: "hobbs"
- icomment:
Logged In: YES user_id=72656 Dup of 1256872 patch. Reverted for 8.4.13, but not 8.5 (yet).
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Duplicate"
- status changed to: "Closed"
- username: "hobbs"