mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
nl_langinfo() didn't work like i thought - fixed :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@920 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e881761d86
commit
1ee8f8fb45
@ -256,7 +256,7 @@ static void settings_save_fe(const char *fname)
|
|||||||
|
|
||||||
static void settings_save_confirm(const char *line, char *fname)
|
static void settings_save_confirm(const char *line, char *fname)
|
||||||
{
|
{
|
||||||
if (toupper(*line) == nl_langinfo(YESEXPR))
|
if (regexp_match(line, nl_langinfo(YESEXPR))
|
||||||
settings_save_fe(fname);
|
settings_save_fe(fname);
|
||||||
g_free(fname);
|
g_free(fname);
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,25 @@
|
|||||||
#ifdef ENABLE_NLS
|
#ifdef ENABLE_NLS
|
||||||
|
|
||||||
# ifdef HAVE_LIBINTL_H
|
# ifdef HAVE_LIBINTL_H
|
||||||
# include <libintl.h>
|
# include <libintl.h>
|
||||||
# else
|
# else
|
||||||
# include "../intl/libgettext.h"
|
# include "../intl/libgettext.h"
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# define _(String) gettext (String)
|
# define _(String) gettext (String)
|
||||||
# ifdef gettext_noop
|
# ifdef gettext_noop
|
||||||
# define N_(String) gettext_noop (String)
|
# define N_(String) gettext_noop (String)
|
||||||
# else
|
# else
|
||||||
# define N_(String) (String)
|
# define N_(String) (String)
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef HAVE_LANGINFO_H
|
# ifdef HAVE_LANGINFO_H
|
||||||
# include <langinfo.h>
|
# include <langinfo.h>
|
||||||
# else
|
# else
|
||||||
# define nl_langinfo(x) x
|
# define nl_langinfo(x) x
|
||||||
# define YESEXPR 'Y'
|
# endif
|
||||||
|
# ifndef YESEXPR
|
||||||
|
# define YESEXPR "^[yY]"
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
/* Stubs that do something close enough. */
|
/* Stubs that do something close enough. */
|
||||||
|
Loading…
Reference in New Issue
Block a user