|
2003-02-14
| ||
| 07:04 | • Closed ticket [685926ffff]: tcl_platform(user) is not in UTF-8 format plus 7... artifact: 3619c40bce user: kennykb | |
| 06:17 | • Ticket [685926ffff]: 4 changes artifact: 98c70b2537 user: kennykb | |
| 06:17 | • Add attachment 685926.patch to ticket [685926ffff] artifact: 2259401662 user: kennykb | |
|
2003-02-13
| ||
| 23:04 | • Ticket [685926ffff] tcl_platform(user) is not in UTF-8 format status still O... artifact: 78a61e900d user: dgp | |
| 21:08 | • Ticket [685926ffff]: 1 change artifact: 52820df3ba user: dkf | |
| 13:56 | • New ticket [685926ffff]. artifact: ce672c61a7 user: vwartelle | |
tcl_platform(user) is not in UTF-8 format
Closed / Fixed685926ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2003-02-13 13:56:27
Problem - ActiveTcl8.4.1.0 - Win XP - (french version) set tcl_platform(user) Propriétaire puts stdout "-$tcl_platform(user)-" -Propriétaire- string bytelength "Propriétaire" 13 string bytelength $tcl_platform(user) 12 string compare $tcl_platform(user) "Propriétaire" 1 Workaround set username [encoding convertto /tcl/encoding/cp1252 $tcl_platform(user)] Propriétaire string bytelength $username 13 string compare $username "Propriétaire" 0
dkf Ticket [685926ffff]: 1 change
[History diff]2003-02-13 21:08:22
dgpplain2003-02-13 23:04:24
Logged In: YES user_id=80530 Apparently improper handling of the value returned from GetUserName in TclpSetVariables() in tclWinInit.c. Kevin, can you advise whether the obvious fix will work? Meanwhile, a better workaround is to set the environment variable USERNAME to the value you want for tcl_platform(user).
kennykbplain2003-02-14 06:17:08
File Added - 42370: 685926.patch Logged In: YES user_id=99768 Patch attached.
kennykbplain2003-02-14 07:04:53
Logged In: YES user_id=99768 fix committed
Log in (anonymous is fine) to add a comment.
Attachments:
- 685926.patch [download] added by kennykb on 2003-02-14 06:17:08. [details]