[MERGE/RFC] hostnames are not always ascii

John Arbash Meinel john at arbash-meinel.com
Sat Aug 16 14:35:06 BST 2008


John Arbash Meinel has voted tweak.
Status is now: Semi-approved
Comment:
I think switching to osutils.get_host_name() is a good thing.
I don't think that win32utils.get_host_name() is quite correct, though. 
As it returns the NETBIOS name (u'VMVISTA...', rather than 
u'vmvista...').

So I think this is better than what we have, but we should also change 
win32utils.get_host_name() to use GetComputerNameEx when we know it is 
available. (Basically, when we know the unicode api is available should 
be sufficient.)
http://msdn.microsoft.com/en-us/library/ms724301(VS.85).aspx


For details, see: 
http://bundlebuggy.aaronbentley.com/project/bzr/request/%3C026001c8ff5b%24b5c6ca70%2421545f50%24%40com.au%3E
Project: Bazaar



More information about the bazaar mailing list