diff options
author | Timo Sirainen <cras@irssi.org> | 2000-12-02 04:44:06 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-12-02 04:44:06 +0000 |
commit | 29f0531550ba354381e49f2e5a35c727921469c9 (patch) | |
tree | 7df635021c51f47e9d61af9bae06a0b3562bcb42 | |
parent | e4d67a1bc4f7826dea67450619898718df4d0bf9 (diff) | |
download | irssi-29f0531550ba354381e49f2e5a35c727921469c9.zip |
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
-rw-r--r-- | configure.in | 3 | ||||
-rw-r--r-- | 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); } |