Overview
| Artifact ID: | 05552b0176af618301e536e407db233cd6d968a8 |
|---|---|
| Ticket: | 3541452fffffffffffffffffffffffffffffffff
[info hostname] does not observe case sensitivity |
| User & Date: | mic42 on 2012-07-10 00:39:49 |
Changes
- icomment:
Technically DNS hostnames are case insensitive, see http://en.wikipedia.org/wiki/Hostname for an overview and RFC1123 for details. The docs for [info hostname] state that a hostname useable for TCP/IP Networking is returned, which is the case. So this is not really a bug in Tcl's hostname function. Even Microsoft states in various places that hostnames are case insensitive, e.g. in KB http://support.microsoft.com/kb/909264. The relevant docs should probably be: http://msdn.microsoft.com/en-us/library/windows/desktop/ms724220(v=vs.85).aspx So file a bug with your other application, it should not depend on the exact case of a DNS name. You can also use the twapi package to get platform specific hostnames/names, see: http://twapi.magicsplat.com/osinfo.html#get_computer_netbios_name
- login: "mic42"
- mimetype: "text/plain"
- username: "mic42"