aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fns.c6
-rw-r--r--src/search.c7
2 files changed, 3 insertions, 10 deletions
diff --git a/src/fns.c b/src/fns.c
index c3202495daf..6b1f7331f55 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1131,10 +1131,8 @@ string the same way whether it is unibyte or multibyte.) */)
1131DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte, 1131DEFUN ("string-make-unibyte", Fstring_make_unibyte, Sstring_make_unibyte,
1132 1, 1, 0, 1132 1, 1, 0,
1133 doc: /* Return the unibyte equivalent of STRING. 1133 doc: /* Return the unibyte equivalent of STRING.
1134Multibyte character codes are converted to unibyte according to 1134Multibyte character codes above 255 are converted to unibyte
1135`nonascii-translation-table' or, if that is nil, `nonascii-insert-offset'. 1135by taking just the low 8 bits of each character's code. */)
1136If the lookup in the translation table fails, this function takes just
1137the low 8 bits of each character. */)
1138 (Lisp_Object string) 1136 (Lisp_Object string)
1139{ 1137{
1140 CHECK_STRING (string); 1138 CHECK_STRING (string);
diff --git a/src/search.c b/src/search.c
index dfbae5c9628..8a0f707b723 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1324,12 +1324,7 @@ search_buffer_non_re (Lisp_Object string, ptrdiff_t pos,
1324 } 1324 }
1325 else 1325 else
1326 { 1326 {
1327 /* Converting multibyte to single-byte. 1327 /* Converting multibyte to single-byte. */
1328
1329 ??? Perhaps this conversion should be done in a special way
1330 by subtracting nonascii-insert-offset from each non-ASCII char,
1331 so that only the multibyte chars which really correspond to
1332 the chosen single-byte character set can possibly match. */
1333 raw_pattern_size = SCHARS (string); 1328 raw_pattern_size = SCHARS (string);
1334 raw_pattern_size_byte = SCHARS (string); 1329 raw_pattern_size_byte = SCHARS (string);
1335 raw_pattern = SAFE_ALLOCA (raw_pattern_size + 1); 1330 raw_pattern = SAFE_ALLOCA (raw_pattern_size + 1);