summaryrefslogtreecommitdiffstats
path: root/src/slave
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-07-05 14:56:50 -0400
committerBen Kaduk <kaduk@mit.edu>2012-07-06 14:06:12 -0400
commit75c7c600b49a7f1d5cf95260fc073cb4ba5929cd (patch)
tree46bcba94693b0171533a55a7d0eee54c0bf35306 /src/slave
parent1df4d98ca14d884808b1d4f746edd4c7f55dbd7e (diff)
downloadkrb5-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/slave')
-rw-r--r--src/slave/kprop.c2
-rw-r--r--src/slave/kpropd.c2
-rw-r--r--src/slave/kproplog.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/slave/kprop.c b/src/slave/kprop.c
index 7f2bc00d68..a8c55f3d95 100644
--- a/src/slave/kprop.c
+++ b/src/slave/kprop.c
@@ -97,7 +97,7 @@ main(argc, argv)
krb5_creds *my_creds;
krb5_auth_context auth_context;
- setlocale(LC_MESSAGES, "");
+ setlocale(LC_ALL, "");
retval = krb5_init_context(&context);
if (retval) {
com_err(argv[0], retval, _("while initializing krb5"));
diff --git a/src/slave/kpropd.c b/src/slave/kpropd.c
index 14304c4fb5..c3ac3a8034 100644
--- a/src/slave/kpropd.c
+++ b/src/slave/kpropd.c
@@ -191,7 +191,7 @@ main(argc, argv)
int ret = 0;
kdb_log_context *log_ctx;
- setlocale(LC_MESSAGES, "");
+ setlocale(LC_ALL, "");
PRS(argv);
log_ctx = kpropd_context->kdblog_context;
diff --git a/src/slave/kproplog.c b/src/slave/kproplog.c
index e8aac1e8eb..b97604abc2 100644
--- a/src/slave/kproplog.c
+++ b/src/slave/kproplog.c
@@ -495,7 +495,7 @@ main(int argc, char **argv)
kdb_hlog_t *ulog = NULL;
char **db_args = NULL; /* XXX */
- setlocale(LC_MESSAGES, "");
+ setlocale(LC_ALL, "");
#if !defined(TEXT_DOMAIN)
#define TEXT_DOMAIN "SYS_TEST"