Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2026-10-22
17:19 • Ticket [1227201fff] does not translate computer names status still Closed w... artifact: f282ec0663 user: serhiy.storchaka
2026-10-21
10:03 • Closed ticket [1227201fff]. artifact: 1fe91c5b0e user: serhiy.storchaka
2012-05-18
06:47 • Ticket [1227201fff]: 4 changes artifact: b344df4df1 user: dkf
2007-10-31
23:49 • Ticket [1227201fff]: 4 changes artifact: 3ef2329885 user: dgp
2005-11-04
04:55 • Ticket [1227201fff]: 1 change artifact: 03f956d17b user: davygrvy
2005-10-06
06:21 • Ticket [1227201fff]: 4 changes artifact: be7d43dea7 user: davygrvy
01:15 • Ticket [1227201fff]: 5 changes artifact: 5a2cfbe7b9 user: hobbs
2005-06-26
05:58 • Ticket [1227201fff]: 2 changes artifact: 949a6fe87e user: dkf
2005-06-24
19:05 • New ticket [1227201fff]. artifact: 344cb0103c user: nobody

does not translate computer names

Closed / Fixed1227201fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 41 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.