{
unsigned char *d = NULL;
struct Header nh;
- bool convert = !Charset_is_utf8;
+ bool convert = !CharsetIsUtf8;
*off = 0;
d = lazy_malloc(sizeof(union Validate));
{
int off = 0;
struct Header *h = mutt_new_header();
- bool convert = !Charset_is_utf8;
+ bool convert = !CharsetIsUtf8;
/* skip validate */
off += sizeof(union Validate);
else
add_wch(WACS_LLCORNER);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\224"); /* WACS_LLCORNER */
else
addch(ACS_LLCORNER);
else
add_wch(WACS_ULCORNER);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\214"); /* WACS_ULCORNER */
else
addch(ACS_ULCORNER);
else
add_wch(WACS_LTEE);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\234"); /* WACS_LTEE */
else
addch(ACS_LTEE);
else
add_wch(WACS_HLINE);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\200"); /* WACS_HLINE */
else
addch(ACS_HLINE);
else
add_wch(WACS_VLINE);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\202"); /* WACS_VLINE */
else
addch(ACS_VLINE);
else
add_wch(WACS_TTEE);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\254"); /* WACS_TTEE */
else
addch(ACS_TTEE);
else
add_wch(WACS_BTEE);
#else
- else if (Charset_is_utf8)
+ else if (CharsetIsUtf8)
addstr("\342\224\264"); /* WACS_BTEE */
else
addch(ACS_BTEE);
wchar_t ReplacementChar = '?';
/**
- * Charset_is_utf8 - Is the user's current character set utf-8?
+ * CharsetIsUtf8 - Is the user's current character set utf-8?
*/
-bool Charset_is_utf8 = false;
+bool CharsetIsUtf8 = false;
/**
* struct Lookup - Regex to String lookup table
if (mutt_ch_is_utf8(buffer))
{
- Charset_is_utf8 = true;
+ CharsetIsUtf8 = true;
ReplacementChar = 0xfffd; /* replacement character */
}
else
{
- Charset_is_utf8 = false;
+ CharsetIsUtf8 = false;
ReplacementChar = '?';
}
extern char *AssumedCharset;
extern char *Charset;
-extern bool Charset_is_utf8;
+extern bool CharsetIsUtf8;
extern wchar_t ReplacementChar;
/**
}
if (!IsWPrint(wc))
wc = '?';
- else if (Charset_is_utf8 && mutt_mb_is_display_corrupting_utf8(wc))
+ else if (CharsetIsUtf8 && mutt_mb_is_display_corrupting_utf8(wc))
continue;
k2 = wcrtomb(scratch, wc, &mbstate2);
scratch[k2] = '\0';
if (k == 0)
k = 1;
- if (Charset_is_utf8)
+ if (CharsetIsUtf8)
{
/* zero width space, zero width no-break space */
if (wc == 0x200B || wc == 0xFEFF)
}
/* no-break space, narrow no-break space */
- if (IsWPrint(wc) || (Charset_is_utf8 && (wc == 0x00A0 || wc == 0x202F)))
+ if (IsWPrint(wc) || (CharsetIsUtf8 && (wc == 0x00A0 || wc == 0x202F)))
{
if (wc == ' ')
{
space = ch;
}
/* no-break space, narrow no-break space */
- else if (Charset_is_utf8 && (wc == 0x00A0 || wc == 0x202F))
+ else if (CharsetIsUtf8 && (wc == 0x00A0 || wc == 0x202F))
{
/* Convert non-breaking space to normal space. The local variable
* `space' is not set here so that the caller of this function won't