summaryrefslogtreecommitdiff
path: root/re.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-02-23 05:36:39 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-02-23 05:36:39 +0000
commitabf6499961c0cf0dd7a20323e915f9c82fcf8b4f (patch)
tree71222aae8d6db13f30e06558a63180b419791bc2 /re.c
parent7aee4189a11d747fe80275f5bd931b2d0a897771 (diff)
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@89 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
-rw-r--r--re.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/re.c b/re.c
index f977face5c..a7b6d69f42 100644
--- a/re.c
+++ b/re.c
@@ -816,6 +816,11 @@ reg_s_quote(re, str)
t = tmp;
for (; s != send; s++) {
+ if (ismbchar(*s)) {
+ *t++ = *s++;
+ *t++ = *s;
+ continue;
+ }
if (*s == '[' || *s == ']'
|| *s == '{' || *s == '}'
|| *s == '(' || *s == ')'