Mercurial > emacs
comparison src/coding.c @ 21253:606fe1bb94e6
(code_convert_string): Use make_string_from_bytes.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 21 Mar 1998 17:59:48 +0000 |
parents | 50929073a0ba |
children | 3d9e12cf2e63 |
comparison
equal
deleted
inserted
replaced
21252:fce0c8c246d1 | 21253:606fe1bb94e6 |
---|---|
4386 | 4386 |
4387 len = from + STRING_BYTES (XSTRING (str)) - to_byte; | 4387 len = from + STRING_BYTES (XSTRING (str)) - to_byte; |
4388 if (encodep) | 4388 if (encodep) |
4389 str = make_unibyte_string (buf, len + coding->produced); | 4389 str = make_unibyte_string (buf, len + coding->produced); |
4390 else | 4390 else |
4391 str = make_multibyte_string (buf, len + coding->produced_char, | 4391 str = make_string_from_bytes (buf, len + coding->produced_char, |
4392 len + coding->produced); | 4392 len + coding->produced); |
4393 return str; | 4393 return str; |
4394 } | 4394 } |
4395 | 4395 |
4396 | 4396 |
4397 #ifdef emacs | 4397 #ifdef emacs |