summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/regex.c b/regex.c
index bea8433153..bc88663897 100644
--- a/regex.c
+++ b/regex.c
@@ -4049,7 +4049,7 @@ re_search_2 (bufp, str1, size1, str2, size2, startpos, range, regs, stop)
#ifdef emacs
MAKE_CHAR_MULTIBYTE (buf_ch);
#endif
- buf_ch = RE_TRANSLATE (buf_ch);
+ buf_ch = RE_TRANSLATE (translate, buf_ch);
#ifdef emacs
MAKE_CHAR_UNIBYTE (buf_ch);
#endif