Mercurial > emacs
comparison src/bytecode.c @ 42305:c976f86658b6
(Fbyte_code): Use Fstring_make_unibyte instead of Fstring_as_unibyte.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Tue, 25 Dec 2001 08:16:46 +0000 |
| parents | cdfd4d09b79a |
| children | 791ec0f30e9e |
comparison
equal
deleted
inserted
replaced
| 42304:8e051a31d2cd | 42305:c976f86658b6 |
|---|---|
| 455 if (STRING_MULTIBYTE (bytestr)) | 455 if (STRING_MULTIBYTE (bytestr)) |
| 456 /* BYTESTR must have been produced by Emacs 20.2 or the earlier | 456 /* BYTESTR must have been produced by Emacs 20.2 or the earlier |
| 457 because they produced a raw 8-bit string for byte-code and now | 457 because they produced a raw 8-bit string for byte-code and now |
| 458 such a byte-code string is loaded as multibyte while raw 8-bit | 458 such a byte-code string is loaded as multibyte while raw 8-bit |
| 459 characters converted to multibyte form. Thus, now we must | 459 characters converted to multibyte form. Thus, now we must |
| 460 convert them back to the original unibyte form. */ | 460 convert them back to the originally intended unibyte form. */ |
| 461 bytestr = Fstring_as_unibyte (bytestr); | 461 bytestr = Fstring_make_unibyte (bytestr); |
| 462 | 462 |
| 463 bytestr_length = STRING_BYTES (XSTRING (bytestr)); | 463 bytestr_length = STRING_BYTES (XSTRING (bytestr)); |
| 464 vectorp = XVECTOR (vector)->contents; | 464 vectorp = XVECTOR (vector)->contents; |
| 465 | 465 |
| 466 stack.byte_string = bytestr; | 466 stack.byte_string = bytestr; |
