From 29f0531550ba354381e49f2e5a35c727921469c9 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sat, 2 Dec 2000 04:44:06 +0000 Subject: Use langinfo.h's nl_langinfo(YESEXPR) instead of 'Y'. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@912 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- configure.in | 3 ++- src/fe-common/core/fe-settings.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 3992ad93..ecd5fa05 100644 --- a/configure.in +++ b/configure.in @@ -25,7 +25,8 @@ ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ $libtool_flags --disable-static --output=libtool-static --no-verify $ac_aux_dir/ltmain.sh $lt_target \ || { echo "configure: error: libtool configure failed" 1>&2; exit 1; } -AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h sys/ioctl.h libintl.h) +AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h sys/ioctl.h) +AC_CHECK_HEADERS(libintl.h langinfo.h) # check posix headers.. AC_CHECK_HEADERS(sys/time.h sys/utsname.h regex.h) diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c index 15968002..5a7b2b64 100644 --- a/src/fe-common/core/fe-settings.c +++ b/src/fe-common/core/fe-settings.c @@ -256,7 +256,7 @@ static void settings_save_fe(const char *fname) static void settings_save_confirm(const char *line, char *fname) { - if (toupper(*line) == 'Y') + if (toupper(*line) == nl_langinfo(YESEXPR)) settings_save_fe(fname); g_free(fname); } -- cgit v1.2.3