/* Non-ASCII characters in SPEC should cause mode-line
element be displayed as a multibyte string. */
ptrdiff_t nbytes = strlen (spec);
- if (multibyte_chars_in_text (spec, nbytes) != nbytes)
+ if (multibyte_chars_in_text ((const unsigned char *)spec,
+ nbytes) != nbytes)
multibyte = true;
switch (mode_line_target)
eolvalue = AREF (val, 2);
if (multibyte)
- buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf);
+ buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)),
+ (unsigned char *) buf);
else
*buf++ = ' ';