does not translate computer names
Closed / Fixed1227201fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 42 days ago
Descriptionplain2005-06-24 19:05:56
The "socket" command when running in windows DOES NOT use a "wide" version of the socket calles or translate the uft-8 encode string to local code page before making a call to (say) "gethostbyname"
dkf Ticket [1227201fff]: 2 changes
[History diff]2005-06-26 05:58:27
hobbsplain2005-10-06 01:15:15
Logged In: YES user_id=72656 Dave - does this make sense to you?
davygrvyplain2005-10-06 06:21:33
Logged In: YES user_id=7549 unfortunetly, I'm a bit busy with stuff unrelated to Tcl so I can't much more than commenting. It does make sense if (..from memory..) Tcl_UtfToWinTchar() call isn't done on the buffer prior to giving it to gethostbyname(). IIRC, gethostbyname() is limited to 7-bit ansi. Legality of character encodings through gethostbyname() is worth checking. Conversion from utf to local code page doesn't sound appropriate to me unless the winsock flavor of gethostbyname() has implicit conversions internally.
davygrvy Ticket [1227201fff]: 1 change
[History diff]2005-11-04 04:55:53
dgpplain2007-10-31 23:49:29
Logged In: YES user_id=80530 Originator: NO See also 1823552
dkfplain2012-05-18 06:47:52
Did this get affected by the changes due to adding IPv6 support?
serhiy.storchakawiki2026-10-21 10:03:37
Since 8.6.0 (IPv6 rewrite, [3f8b48b6b6]) the host name is converted to the system encoding before getaddrinfo() is called. Please reopen if a non-ASCII host name still fails with 8.6.18 or 9.0.
serhiy.storchaka Ticket [1227201fff]: 3 changes
[History diff]2026-10-22 17:19:30
Log in (anonymous is fine) to add a comment.