Skip to content
Tcl Source Code History Of Ticket 3541452fffffffff
Login

History Of Ticket 3541452fffffffff

Artifacts Associated With Ticket 3541452fffffffff

  1. Ticket change [31fdf86912] (rid 93532) by bz-mof on 2012-07-08 22:31:01:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
    4. foundin initialized to: "obsolete: 8.5.11"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "bz-mof"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to: "[info hostname] does not observe case sensitivity"
    12. type initialized to: "Bug"
  2. Ticket change [05552b0176] (rid 89043) by mic42 on 2012-07-10 00:39:49:

    1. 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
      
      
      
      
    2. login: "mic42"
    3. mimetype: "text/plain"
    4. username: "mic42"
  3. Ticket change [96fb1a7ff6] (rid 106429) by bz-mof on 2012-07-10 01:02:59:

    1. 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!
      
      
    2. login: "bz-mof"
    3. mimetype: "text/plain"
    4. username: "bz-mof"
  4. Ticket change [170d817bca] (rid 124814) by bz-mof on 2012-07-10 01:23:38:

    1. icomment:
      edit: Unfortunately ::twapi::get_computer_netbios_name and ::twapi::get_computer_name respond with all-upper-case strings
      
      
    2. login: "bz-mof"
    3. mimetype: "text/plain"
    4. username: "bz-mof"
  5. Ticket change [93bddcc520] (rid 105864) by dkf on 2012-07-10 15:29:02:

    1. closedate changed to: "2012-07-10T08:29:02"
    2. closer changed to: "dkf"
    3. 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.
      
      
    4. login: "dkf"
    5. mimetype: "text/plain"
    6. resolution changed to: "Invalid"
    7. status changed to: "Pending"
    8. subsystem changed to: "27. Channel Types"
    9. username: "dkf"
  6. Ticket change [ceabccacbf] (rid 135563) by dkf on 2013-11-12 12:40:19:

    1. closedate changed to: "2456609.02800576"
    2. 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.
      
    3. login: "dkf"
    4. mimetype: "text/plain"
    5. severity changed to: "Minor"
    6. status changed to: "Closed"