diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-21 15:56:12 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-21 15:56:12 +0000 |
commit | 004f4abe6e6e139f94aea16c6569ecada95f4fb8 (patch) | |
tree | 60eb441a378ed2769ef484421168bc8eb1c668e4 /regex.c | |
parent | [w3m-dev 02876] w3mmail.cgi.in backport from w3mmee (diff) | |
download | w3m-004f4abe6e6e139f94aea16c6569ecada95f4fb8.tar.gz w3m-004f4abe6e6e139f94aea16c6569ecada95f4fb8.zip |
[w3m-dev 02877] some fixes for urimethodmap
* config.h.dist (RC_DIR): remove tailing /
* configure (mailer): if use_w3mmailer = y, don't ask mailer
* configure (RC_DIR): remove tailing /
* fm.h (Mailer): ifndef USE_W3MMAILER
* main.c (MAIN): ifndef USE_W3MMAILER getenv("MAILER")
* rc.c ("mailer"): ifndef USE_W3MMAILER
* regex.c (newRegex0): \ escape kanji chars
* url.c (searchURIMethods): need escape for -
* scripts/w3mmail.cgi.in: move $url, $qurl
* scripts/w3mmail.cgi.in: url_unquote $to
From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to '')
-rw-r--r-- | regex.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: regex.c,v 1.13 2002/01/16 04:38:06 ukai Exp $ */ +/* $Id: regex.c,v 1.14 2002/01/21 15:56:13 ukai Exp $ */ /* * regex: Regular expression pattern match library * @@ -152,8 +152,15 @@ newRegex0(char **ex, int igncase, Regex *regex, char **msg, int level) m = RE_WHICH; while (*p != ']') { if (*p == '\\') { - *(st_ptr++) = *(p + 1); - p += 2; + p++; +#ifdef JP_CHARSET + if (IS_KANJI1(*p)) { + *(st_ptr++) = RE_KANJI(p); + p += 2; + } + else +#endif + *(st_ptr++) = (unsigned char)*(p++); } else if (*p == '-') { *(st_ptr++) = RE_WHICH_RANGE; |