socket error encoding bug
Closed / Fixed743338466549f09e3956d8a86e6f9a8030f227cbCreated 12 years agoUpdated 12 years ago
Descriptionplain2014-11-20 16:45:15
Executing on Windows XP:
> catch {socket dasjk 123} Err
> set Err
Result:
couldn't open socket: Ýòîò õîñò íåèçâåñòåí.
Using:
> encoding convertfrom cp1251 $Err
Returns correct (in my locale):
couldn't open socket: Этот хост неизвестен.
My [encoding system] is cp1251.
Referenced by1
19efe47577Fix [743338466549f09e3956d8a86e6f9a8030f227cb|7433384665]: socket error encoding bug. check-in2014-11-21 13:05:31
oehharwiki2014-11-20 21:26:14
Thank you for the report.
Is this in the wish coinsole or in a command window with tclsh ?
Could you briefly translate the error message to english?
yschplain2014-11-21 10:44:18
It's wish console. Translation is: 'host not found'. I suppose that it is windows socket error 11001 (hex 0x00002af9).
jan.nijtmansplain2014-11-21 11:32:48
Problem is here: [http://core.tcl.tk/tcl/artifact/c54863fbe4?ln=15-17] On Windows, the function gai_strerrorW should be used with proper unicode->utf8 encoding
jan.nijtmanswiki2014-11-21 13:05:18
Fixed in [19efe47577]
Log in (anonymous is fine) to add a comment.