Artifacts Associated With Ticket 920053
Ticket change [b80f3c48f5] (rid 128910) by davidw on 2004-03-20 13:40:50:
- assignee initialized to: "dkf"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, Problem: 'format' command doesn't respect LC_NUMERIC locale information, because of this: tclUnixInit.c:652:setlocale(LC_NUMERIC, "C"); which is sensible as a way of not messing things up internally with Tcl, but creates some problems if one needs to output things according to the locale being used, with, say, the format command, where I noticed the problem. The only way I can think of, offhand, to fix it would be to save the old value, and do setlocale during 'format' or other commands that return results.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "davidw"
- subsystem initialized to: "16. Commands A-H"
- title initialized to: "format doesn't respect locale"
- type initialized to: "RFE"
Ticket change [5f0760a365] (rid 115741) by davidw on 2004-03-21 00:06:45:
- icomment:
Logged In: YES user_id=240 On second thought, I'm not really sure you would ever want it to default to this, but there are definitely cases where it would be useful - when you are outputting to the screen, say, when you definitely want to be acting according to the user's locale.
- login: "davidw"
- mimetype: "text/plain"
- username: "davidw"
- icomment:
Ticket change [dcf5033202] (rid 114577) by hobbs on 2004-03-21 02:30:27:
- icomment:
Logged In: YES user_id=72656 I do not think that the format command should be localized by default. You can always add a locale command, but there are a lot of issues for thread-safety, multiple interps, etc that have to be taken into account - best by the end developer.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Rejected"
- status changed to: "Pending"
- username: "hobbs"
- icomment:
Ticket change [578e0e00f6] (rid 94504) by hobbs on 2004-03-21 02:30:28:
- closedate changed to: "2004-03-20T19:30:28"
- closer changed to: "hobbs"
Ticket change [7e8dd733a1] (rid 97432) by dkf on 2004-03-22 16:10:28:
- assignee changed to: "nobody"
- icomment:
Logged In: YES user_id=79902 Arguably, there ought to be a way to apply a particular locale's formatting rules to a specific format pattern. Changing to FRQ.
- login: "dkf"
- mimetype: "text/plain"
- status changed to: "Open"
- subsystem changed to: "None"
- username: "dkf"
Ticket change [91f06f2cd2] (rid 120699) by dkf on 2004-03-22 16:12:36:
- icomment:
Logged In: YES user_id=79902 Perhaps this is something that should be done in msgcat? Anything you're formatting according to locale rules probably ought to go through a message catalog at the same time...
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "None"
- subsystem changed to: "30. msgcat Package"
- username: "dkf"
- icomment:
Ticket change [aa912e41b0] (rid 100945) by dkf on 2006-06-30 15:16:44:
- subsystem changed to: "16. Commands A-H"
- title changed to: "format doesn\'t respect locale"
Ticket change [7b142c7128] (rid 90451) by dkf on 2006-06-30 15:17:14:
- assignee changed to: "dkf"
- title changed to: "format doesn\\\'t respect locale"
Ticket change [1319eb0a5b] (rid 124161) by dkf on 2006-06-30 15:28:28:
- title changed to: "format ignores locale"
Ticket change [5bc3e955e4] (rid 118391) by dkf on 2009-01-30 21:13:42:
- assignee changed to: "dgp"