+2003-02-17 Kenichi Handa <handa@m17n.org>
+
+ * fns.c (string_to_multibyte): Always return a multibyte string.
+
2003-02-16 Jason Rumney <jasonr@gnu.org>
* w32fns.c (w32_list_bdf_fonts, w32_list_fonts): Negative
return string;
nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string));
- /* If all the chars are ASCII, they won't need any more bytes
- once converted. In that case, we can return STRING itself. */
+ /* If all the chars are ASCII or eight-bit-graphic, they won't need
+ any more bytes once converted. */
if (nbytes == SBYTES (string))
- return string;
+ return make_multibyte_string (SDATA (string), nbytes, nbytes);
buf = (unsigned char *) alloca (nbytes);
bcopy (SDATA (string), buf, SBYTES (string));