diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-29 02:21:29 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2008-09-29 02:21:29 +0000 |
commit | 5b6d2d38d28a9e5983f45d18db13bcceec8385c1 (patch) | |
tree | 2773c53af5eed53a125c617c5b24d5546e2552f6 /libsylph | |
parent | 6dbb1c1eccf35f0de4692f1d91e6f07cd7e99db4 (diff) |
check for HAVE_LOCALE_H and ENABLE_NLS.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2045 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'libsylph')
-rw-r--r-- | libsylph/codeconv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsylph/codeconv.c b/libsylph/codeconv.c index 08f60e22..36dd264c 100644 --- a/libsylph/codeconv.c +++ b/libsylph/codeconv.c @@ -2061,8 +2061,10 @@ const gchar *conv_get_current_locale(void) cur_locale = g_getenv("LC_CTYPE"); if (!cur_locale || *cur_locale == '\0') cur_locale = g_getenv("LANG"); +#ifdef HAVE_LOCALE_H if (!cur_locale || *cur_locale == '\0') cur_locale = setlocale(LC_CTYPE, NULL); +#endif /* HAVE_LOCALE_H */ #endif /* G_OS_WIN32 */ debug_print("current locale: %s\n", |