aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index a6706b00c3c..ed1d248990c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -25640,7 +25640,8 @@ display_mode_element (struct it *it, int depth, int field_width, int precision,
25640 /* Non-ASCII characters in SPEC should cause mode-line 25640 /* Non-ASCII characters in SPEC should cause mode-line
25641 element be displayed as a multibyte string. */ 25641 element be displayed as a multibyte string. */
25642 ptrdiff_t nbytes = strlen (spec); 25642 ptrdiff_t nbytes = strlen (spec);
25643 if (multibyte_chars_in_text (spec, nbytes) != nbytes) 25643 if (multibyte_chars_in_text ((const unsigned char *)spec,
25644 nbytes) != nbytes)
25644 multibyte = true; 25645 multibyte = true;
25645 25646
25646 switch (mode_line_target) 25647 switch (mode_line_target)
@@ -26261,7 +26262,8 @@ decode_mode_spec_coding (Lisp_Object coding_system, char *buf, bool eol_flag)
26261 eolvalue = AREF (val, 2); 26262 eolvalue = AREF (val, 2);
26262 26263
26263 if (multibyte) 26264 if (multibyte)
26264 buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)), buf); 26265 buf += CHAR_STRING (XFIXNAT (CODING_ATTR_MNEMONIC (attrs)),
26266 (unsigned char *) buf);
26265 else 26267 else
26266 *buf++ = ' '; 26268 *buf++ = ' ';
26267 26269