1053 |
return string; |
return string; |
1054 |
|
|
1055 |
nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string)); |
nbytes = parse_str_to_multibyte (SDATA (string), SBYTES (string)); |
1056 |
/* If all the chars are ASCII, they won't need any more bytes |
/* If all the chars are ASCII or eight-bit-graphic, they won't need |
1057 |
once converted. In that case, we can return STRING itself. */ |
any more bytes once converted. */ |
1058 |
if (nbytes == SBYTES (string)) |
if (nbytes == SBYTES (string)) |
1059 |
return string; |
return make_multibyte_string (SDATA (string), nbytes, nbytes); |
1060 |
|
|
1061 |
buf = (unsigned char *) alloca (nbytes); |
buf = (unsigned char *) alloca (nbytes); |
1062 |
bcopy (SDATA (string), buf, SBYTES (string)); |
bcopy (SDATA (string), buf, SBYTES (string)); |