From 75c7c600b49a7f1d5cf95260fc073cb4ba5929cd Mon Sep 17 00:00:00 2001 From: Ben Kaduk Date: Thu, 5 Jul 2012 14:56:50 -0400 Subject: 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 --- src/kadmin/cli/ss_wrapper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kadmin/cli') diff --git a/src/kadmin/cli/ss_wrapper.c b/src/kadmin/cli/ss_wrapper.c index f86c215f0..bf884d1ec 100644 --- a/src/kadmin/cli/ss_wrapper.c +++ b/src/kadmin/cli/ss_wrapper.c @@ -39,7 +39,7 @@ main(int argc, char *argv[]) krb5_error_code retval; int sci_idx, code = 0; - setlocale(LC_MESSAGES, ""); + setlocale(LC_ALL, ""); whoami = ((whoami = strrchr(argv[0], '/')) ? whoami+1 : argv[0]); request = kadmin_startup(argc, argv); -- cgit