mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
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:
parent
ffda311287
commit
a5e46bad36
9 changed files with 33 additions and 28 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue