Commit 603a8d59 authored by Kenichi Handa's avatar Kenichi Handa

(Fchar_to_string): If CHARACTER is less than 256,

return a unibyte string.
parent 5729c92f
......@@ -167,7 +167,9 @@ DEFUN ("char-to-string", Fchar_to_string, Schar_to_string, 1, 1, 0,
CHECK_NUMBER (character, 0);
len = CHAR_STRING (XFASTINT (character), str);
len = (SINGLE_BYTE_CHAR_P (XFASTINT (character))
? (*str = (unsigned char)(XFASTINT (character)), 1)
: char_to_string (XFASTINT (character), str));
return make_string_from_bytes (str, 1, len);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment