nl_langinfo() was a bad idea, don't use it.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@948 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-12-03 06:39:28 +00:00 committed by cras
commit a5e46bad36
9 changed files with 33 additions and 28 deletions

View file

@ -256,7 +256,7 @@ static void settings_save_fe(const char *fname)
static void settings_save_confirm(const char *line, char *fname)
{
if (regexp_match(line, nl_langinfo(YESEXPR)))
if (g_strncasecmp(line, _("Y"), 1) == 0)
settings_save_fe(fname);
g_free(fname);
}

View file

@ -12,15 +12,6 @@
# else
# define N_(String) (String)
# endif
# ifdef HAVE_LANGINFO_H
# include <langinfo.h>
# else
# define nl_langinfo(x) x
# endif
# ifndef YESEXPR
# define YESEXPR "^[yY]"
# endif
#else
/* Stubs that do something close enough. */
# define textdomain(String) (String)

View file

@ -51,6 +51,7 @@ CORE_SOURCES = \
common/Rawlog.xs \
common/Server.xs \
common/Settings.xs \
common/Themes.xs \
common/Window.xs \
common/Irssi.xs \
common/Irssi.pm \