Overview
| Artifact ID: | fc0c2f6bb7650192fbf73c80f0b7231c4964f543 |
|---|---|
| Ticket: | 1317477fffffffffffffffffffffffffffffffff
clock format %c %X %Z output garbled string on Windows |
| User & Date: | nobody on 2005-10-08 08:29:39 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
ActiveTcl8.4.11 Windows2000(Japanese) clock format 0 -format %Z clock format 0 -format %X clock format 0 -format %c clock format 0 -format %x clock format %c, %X and %Z output garbled string. I read source code and found points of problems. Next is details. %Z compat/strftime.c use multi-byte string. But Windows TclpGetTZName returned UTF8 string. And this string wasn't converted to muiti-byte. %c %x %X we should use LOCALE_USE_CP_ACP flag at GetDateFormat in compat/strftime.c. If system language wasn't same as locale option language, clock format %c and %X output garbled string. Of cource, this is a rare case, and if windows could not map locale encoding to system encoding, then we get garbled string after all.... I' wrote patch for compat/strftime.c. please see it too. thanks
- foundin changed to: "obsolete: 8.4.11"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "nobody"
- subsystem changed to: "16. Commands A-H"
- title changed to:
clock format %c %X %Z output garbled string on Windows
- type changed to: "Bug"