diff options
author | Ben Kaduk <kaduk@mit.edu> | 2012-07-05 14:56:50 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-07-06 14:06:12 -0400 |
commit | 75c7c600b49a7f1d5cf95260fc073cb4ba5929cd (patch) | |
tree | 46bcba94693b0171533a55a7d0eee54c0bf35306 /src/util/k5test.py | |
parent | 1df4d98ca14d884808b1d4f746edd4c7f55dbd7e (diff) | |
download | krb5-75c7c600b49a7f1d5cf95260fc073cb4ba5929cd.tar.gz krb5-75c7c600b49a7f1d5cf95260fc073cb4ba5929cd.tar.xz krb5-75c7c600b49a7f1d5cf95260fc073cb4ba5929cd.zip |
Enable all localizations in main functions
Bite the bullet and pass LC_ALL to setlocale() instead of just
LC_MESSAGES. Calls to setlocale() itself were introduced in
fabbf9e443459e8c0161c84563690ed70c7f6a61 for ticket 6918, but
only for LC_MESSAGES since only localized strings were needed
and that was the most conservative option.
However, klist, kadmin, and kinit (and perhaps others) would benefit
from localized formats for times (i.e., LC_TIME). If potentially
localized data is being sent on the wire, that is a bug that should
be fixed. No such bugs are found with the current test suite, so we
are comfortable enabling LC_ALL at this time.
ticket: 7192
Diffstat (limited to 'src/util/k5test.py')
-rw-r--r-- | src/util/k5test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/k5test.py b/src/util/k5test.py index c5669bef29..b5f6d15100 100644 --- a/src/util/k5test.py +++ b/src/util/k5test.py @@ -518,8 +518,9 @@ def _build_env(): env[k] = os.path.join(buildtop, v) else: env[k] = v - # Make sure we don't get confused by translated messages. - env['LC_MESSAGES'] = 'C' + # Make sure we don't get confused by translated messages + # or localized times. + env['LC_ALL'] = 'C' return env |