| Ticket UUID: | 743338466549f09e3956d8a86e6f9a8030f227cb | |||
| Title: | socket error encoding bug | |||
| Type: | Bug | Version: | 8.6.2 | |
| Submitter: | ysch | Created on: | 2014-11-20 16:45:15 | |
| Subsystem: | 24. Channel Commands | Assigned To: | jan.nijtmans | |
| Priority: | 5 Medium | Severity: | Important | |
| Status: | Closed | Last Modified: | 2014-11-21 13:05:18 | |
| Resolution: | Fixed | Closed By: | jan.nijtmans | |
| Closed on: | 2014-11-21 13:05:18 | |||
| Description: |
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.
| |||
| User Comments: |
jan.nijtmans added on 2014-11-21 13:05:18:
Fixed in [19efe4757768d5eb6af1f18eb4cdc7cd48ec9492|19efe47577] jan.nijtmans added on 2014-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 ysch added on 2014-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). oehhar added on 2014-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? | |||