|
2002-06-26
| ||
| 20:43 | • Closed ticket [565880ffff]: clock format doesn't support locales plus ... artifact: 32c98c0487 user: rmax | |
|
2002-06-07
| ||
| 23:03 | • Ticket [565880ffff]: 2 changes artifact: 274f059e41 user: rmax | |
| 22:59 | • Ticket [565880ffff]: 4 changes artifact: 32e9f3b9db user: rmax | |
| 22:59 | • Add attachment clock_locale.patch to ticket [565880ffffffffff|565880fff... artifact: 7dfe020113 user: rmax | |
| 15:59 | • New ticket [565880ffff] clock format doesn't support locales. artifact: a03530573a user: rmax | |
[clock format] doesn't support locales
Closed / Fixed565880ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-06-07 15:59:36
[clock format] always returns day and month names in Engish, although it uses strftime() internally which supports locales, but only if the LC_TIME locale category has been initialized from the respective environment variable(s) before. I first thought of adding a call to setlocale(LC_TIME,"") or setlocsl(LC_ALL, "") to unix/tclUnixInit.c, but that would have meant, that a script can't change the locale it inherited from it's parent process. This in turn broke many of the tests in clock.test when "make test" was called from within a German locale. Therefore I added the setlocale(LC_TIME,"") call to tclUnixTime.c just before strftime() is being called, so that changing env(LC_CTIME) from within a script changes gets reflected in [clock format] immediately.
rmaxplain2002-06-07 22:59:36
File Added - 24604: clock_locale.patch
rmax Ticket [565880ffff]: 2 changes
[History diff]2002-06-07 23:03:08
rmaxplain2002-06-26 20:43:12
Logged In: YES user_id=124643 Applied the patch to 8.4b1.
Log in (anonymous is fine) to add a comment.
Attachments:
- clock_locale.patch [download] added by rmax on 2002-06-07 22:59:36. [details]