summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-12-03 06:39:28 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-12-03 06:39:28 +0000
commita5e46bad36f84fb62e859d3de5290097bdc47a7d (patch)
treeb293e79a2127709df786882e3f2af057eb76ee97 /src
parentffda311287ddb54f7db0dc31043ab9666a9b194e (diff)
downloadirssi-a5e46bad36f84fb62e859d3de5290097bdc47a7d.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/fe-common/core/fe-settings.c2
-rw-r--r--src/nls.h9
-rw-r--r--src/perl/Makefile.am1
3 files changed, 2 insertions, 10 deletions
diff --git a/src/fe-common/core/fe-settings.c b/src/fe-common/core/fe-settings.c
index 0af8451f..8bb09a72 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 (regexp_match(line, nl_langinfo(YESEXPR)))
+ if (g_strncasecmp(line, _("Y"), 1) == 0)
settings_save_fe(fname);
g_free(fname);
}
diff --git a/src/nls.h b/src/nls.h
index fe6ed0e5..d8148620 100644
--- a/src/nls.h
+++ b/src/nls.h
@@ -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)
diff --git a/src/perl/Makefile.am b/src/perl/Makefile.am
index 775ccff9..33b97304 100644
--- a/src/perl/Makefile.am
+++ b/src/perl/Makefile.am
@@ -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 \