Artifacts Associated With Ticket 3541452fffffffffffffffffffffffffffffffff
Ticket change [31fdf86912] (rid 93532) by bz-mof on 2012-07-08 22:31:01:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
OS: Windows XP, Windows 7 Problem Behavior: A windows' machines hostname is "Mof13.somedomain". But [info hostname] returns "mof13.somedomain" (with a lower-case "m"), which can cause problems if the hostname is passed to other applications that need the string in correct case. Platform-dependant workaround is [exec hostname], in my case. Expected Behavior: [info hostname] should return the hostname with unchanged upper and lower case.
- foundin initialized to: "obsolete: 8.5.11"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "bz-mof"
- subsystem initialized to: "17. Commands I-L"
- title initialized to: "[info hostname] does not observe case sensitivity"
- type initialized to: "Bug"
Ticket change [05552b0176] (rid 89043) by mic42 on 2012-07-10 00:39:49:
- 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"
- icomment:
Ticket change [96fb1a7ff6] (rid 106429) by bz-mof on 2012-07-10 01:02:59:
- icomment:
Well, you are right. I just found out that it is PVM (Parallel Virtual Machine) by Oak Ridge National Laboratory (http://www.csm.ornl.gov/pvm/pvm_home.html) that has the case sensitivity in the hostname, which is possibly a bug. So I confirm it's not a bug in tcl, but couldn't it be a feature? Providing the hostname in "correct" case should not break anything... Thank you very much for the hint to twapis get_computer_netbios_name!
- login: "bz-mof"
- mimetype: "text/plain"
- username: "bz-mof"
- icomment:
Ticket change [170d817bca] (rid 124814) by bz-mof on 2012-07-10 01:23:38:
- icomment:
edit: Unfortunately ::twapi::get_computer_netbios_name and ::twapi::get_computer_name respond with all-upper-case strings
- login: "bz-mof"
- mimetype: "text/plain"
- username: "bz-mof"
- icomment:
Ticket change [93bddcc520] (rid 105864) by dkf on 2012-07-10 15:29:02:
- closedate changed to: "2012-07-10T08:29:02"
- closer changed to: "dkf"
- icomment:
Tcl converts the result of the GetComputerName() Win32/Win64 call to lower case (as NetBIOS names are always uppercase and the case _shouldn't matter_) but otherwise does nothing with returned cases. In particular, it never messes with names retrieved from DNS or from the Unix gethostname() call. If you've got a deployment where you've got critical case sensitivity in DNS names, You're Doing It Wrong.
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- subsystem changed to: "27. Channel Types"
- username: "dkf"
Ticket change [ceabccacbf] (rid 135563) by dkf on 2013-11-12 12:40:19:
- closedate changed to: "2456609.02800576"
- comment changed to:
OS: Windows XP, Windows 7 Problem Behavior: A windows' machines hostname is "Mof13.somedomain". But [info hostname] returns "mof13.somedomain" (with a lower-case "m"), which can cause problems if the hostname is passed to other applications that need the string in correct case. Platform-dependant workaround is [exec hostname], in my case. Expected Behavior: [info hostname] should return the hostname with unchanged upper and lower case.
- login: "dkf"
- mimetype: "text/plain"
- severity changed to: "Minor"
- status changed to: "Closed"