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/kadmin/testing/scripts | |
| 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/kadmin/testing/scripts')
| -rwxr-xr-x | src/kadmin/testing/scripts/env-setup.shin | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kadmin/testing/scripts/env-setup.shin b/src/kadmin/testing/scripts/env-setup.shin index de1578b56..11d018a50 100755 --- a/src/kadmin/testing/scripts/env-setup.shin +++ b/src/kadmin/testing/scripts/env-setup.shin @@ -81,8 +81,9 @@ KRB5_KTNAME=$K5ROOT/ovsec_adm.srvtab; export KRB5_KTNAME KRB5_CLIENT_KTNAME=$K5ROOT/client_keytab; export KRB5_CLIENT_KTNAME KRB5CCNAME=$K5ROOT/krb5cc_unit-test; export KRB5CCNAME -# Make sure we don't get confused by translated messages. -LC_MESSAGES=C; export LC_MESSAGES +# Make sure we don't get confused by translated messages +# or localized times. +LC_ALL=C; export LC_ALL if [ "$TEST_SERVER" != "" ]; then MAKE_KEYTAB="$MAKE_KEYTAB -server $TEST_SERVER" |
