diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fns.c | 6 | ||||
| -rw-r--r-- | src/search.c | 7 |
2 files changed, 3 insertions, 10 deletions
| @@ -1042,10 +1042,8 @@ string the same way whether it is unibyte or multibyte.) */) | |||
| 1042 | DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, | 1042 | DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, |
| 1043 | 1, 1, 0, | 1043 | 1, 1, 0, |
| 1044 | doc: /* Return the unibyte equivalent of STRING. | 1044 | doc: /* Return the unibyte equivalent of STRING. |
| 1045 | Multibyte character codes are converted to unibyte according to | 1045 | Multibyte character codes above 255 are converted to unibyte |
| 1046 | `nonascii-translation-table' or, if that is nil, `nonascii-insert-offset'. | 1046 | by taking just the low 8 bits of each character's code. */) |
| 1047 | If the lookup in the translation table fails, this function takes just | ||
| 1048 | the low 8 bits of each character. */) | ||
| 1049 | (Lisp_Object string) | 1047 | (Lisp_Object string) |
| 1050 | { | 1048 | { |
| 1051 | CHECK_STRING (string); | 1049 | CHECK_STRING (string); |
diff --git a/src/search.c b/src/search.c index 9bde884bc53..db7fecd9bab 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -1341,12 +1341,7 @@ search_buffer (Lisp_Object string, ptrdiff_t pos, ptrdiff_t pos_byte, | |||
| 1341 | } | 1341 | } |
| 1342 | else | 1342 | else |
| 1343 | { | 1343 | { |
| 1344 | /* Converting multibyte to single-byte. | 1344 | /* Converting multibyte to single-byte. */ |
| 1345 | |||
| 1346 | ??? Perhaps this conversion should be done in a special way | ||
| 1347 | by subtracting nonascii-insert-offset from each non-ASCII char, | ||
| 1348 | so that only the multibyte chars which really correspond to | ||
| 1349 | the chosen single-byte character set can possibly match. */ | ||
| 1350 | raw_pattern_size = SCHARS (string); | 1345 | raw_pattern_size = SCHARS (string); |
| 1351 | raw_pattern_size_byte = SCHARS (string); | 1346 | raw_pattern_size_byte = SCHARS (string); |
| 1352 | raw_pattern = SAFE_ALLOCA (raw_pattern_size + 1); | 1347 | raw_pattern = SAFE_ALLOCA (raw_pattern_size + 1); |