diff options
author | Ben Kaduk <kaduk@mit.edu> | 2012-07-06 15:45:20 -0400 |
---|---|---|
committer | Ben Kaduk <kaduk@mit.edu> | 2012-07-06 16:34:28 -0400 |
commit | 7afeca0d0f821e12298d6987a9d1cd65be7539b0 (patch) | |
tree | 149904f35e11c07132b960eaa2f604b4ed5b542a /src/clients/kdestroy | |
parent | a7a0fb374869e77b380e658fa698622f1adcdbe4 (diff) | |
download | krb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.tar.gz krb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.tar.xz krb5-7afeca0d0f821e12298d6987a9d1cd65be7539b0.zip |
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/kdestroy')
-rw-r--r-- | src/clients/kdestroy/kdestroy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clients/kdestroy/kdestroy.c b/src/clients/kdestroy/kdestroy.c index 2d13cd996f..299838ff55 100644 --- a/src/clients/kdestroy/kdestroy.c +++ b/src/clients/kdestroy/kdestroy.c @@ -27,6 +27,7 @@ #include "k5-platform.h" #include <krb5.h> #include <com_err.h> +#include <locale.h> #include <string.h> #include <stdio.h> #ifdef HAVE_UNISTD_H |