From dfab785ba7fa5cb558d4c510844d5b80a040394b Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Thu, 25 Aug 2011 21:55:10 +1000 Subject: [PATCH] Add a couple more places where the character constant is a wide char --- src/intf.c | 2 +- src/intf.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/intf.c b/src/intf.c index bd50c97..003e0aa 100644 --- a/src/intf.c +++ b/src/intf.c @@ -106,7 +106,7 @@ typedef struct txwin { do { \ char *s = gettext(_default); \ if (xmbstowcs(buf, s, BUFSIZE) < (_checkpos) + 1 \ - || buf[_checkpos] != '|') { \ + || buf[_checkpos] != L'|') { \ err_exit(_("%s: string has incorrect format: `%s'"), \ __stringify(_var), s); \ } \ diff --git a/src/intf.h b/src/intf.h index ebdb70d..8c45177 100644 --- a/src/intf.h +++ b/src/intf.h @@ -102,8 +102,8 @@ typedef enum curs_type { #define KEY_CTRL(x) ((x) - 0100) // ASCII control character // Keycodes for inserting the default value in input routines -#define CHAR_DEFVAL1 '=' -#define CHAR_DEFVAL2 ';' +#define CHAR_DEFVAL1 L'=' +#define CHAR_DEFVAL2 L';' // Control-arrow key combinations, as returned by Ncurses #ifndef KEY_CDOWN