Overview
| Artifact ID: | c0d29d12127206fe81b04e66a29d1b049024c362 |
|---|---|
| Ticket: | 1823552fffffffffffffffffffffffffffffffff
[info hostname] encoding |
| User & Date: | dgp on 2007-10-31 15:34:18 |
Changes
- assignee changed to: "andreas_kupries"
- cmimetype changed to: "text/plain"
- comment changed to:
In an application that embeds Tcl, we create data snapshot files, and construct unique filenames to avoid collision when filesystems are shared by several systems running our app, like so: set name foo-[info hostname]-[pid] Some users of our app working on a Chinese Windows system report errors about not being able to find/read these files. After a few rounds of debugging, the problem realtes to their [info hostname] containing Chinese characters. If we revise to set name foo-[encoding convertfrom [info hostname]]-[pid] then the app works again. Looking at the source code fro Tcl_GetHostname() it appears that the translation from system encoding to internal encoding is not done on Windows when the value is retreived from a gethostname() routine. It seems this bug has been undetected for a long time, since it is only very recently that ICANN is permitting domain names to have non-ASCII characters.
- foundin changed to: "obsolete: 8.4.16"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "dgp"
- subsystem changed to: "27. Channel Types"
- title changed to: "[info hostname] encoding"
- type changed to: "Bug"