aboutsummaryrefslogtreecommitdiff
path: root/src/clients/kswitch
diff options
context:
space:
mode:
authorBen Kaduk <kaduk@mit.edu>2012-07-06 15:45:20 -0400
committerBen Kaduk <kaduk@mit.edu>2012-07-06 16:34:28 -0400
commit7afeca0d0f821e12298d6987a9d1cd65be7539b0 (patch)
tree149904f35e11c07132b960eaa2f604b4ed5b542a /src/clients/kswitch
parenta7a0fb374869e77b380e658fa698622f1adcdbe4 (diff)
downloadkrb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.zip
krb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.tar.gz
krb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.tar.bz2
Allow using locales when gettext is absent
Previously, if configure did not detect dgettext(), we disabled anything that smelled like localization, inadvertently including setlocale(). Now that we use setlocale(LC_ALL, ""), we have localized dates available as well as messages, so we should not disable calls to setlocale() any more. Since the routines from locale.h are only used in a relatively small number of places, just include the header directly in those files and remove it from k5-platform.h.
Diffstat (limited to 'src/clients/kswitch')
-rw-r--r--src/clients/kswitch/kswitch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clients/kswitch/kswitch.c b/src/clients/kswitch/kswitch.c
index 6c721d2..b649479 100644
--- a/src/clients/kswitch/kswitch.c
+++ b/src/clients/kswitch/kswitch.c
@@ -24,6 +24,7 @@
* or implied warranty.
*/
+#include <locale.h>
#include "k5-int.h"
extern int optind;