[#19261] lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@...

なかだです。

29 messages 2003/01/01
[#19360] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "K.Kosako" <kosako@...> 2003/01/15

nobu.nakada@nifty.ne.jpさんの

[#19361] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/15

なひです。

[#19364] Re: lstripped here-document (Re: comments and continuing strings on the next line) — nobu.nakada@... 2003/01/17

なかだです。

[#19366] Re: lstripped here-document (Re: comments and continuing strings on the next line) — "NAKAMURA, Hiroshi" <nakahiro@...> 2003/01/17

なひです。

[#19299] [BUG] errno == 0 — Kazuhiro Yoshida <moriq@...>

もりきゅうです。win32だけかもしれません。

22 messages 2003/01/04
[#19301] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19302] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19303] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19304] Re: [BUG] errno == 0 — "U.Nakamura" <usa@...> 2003/01/04

こんにちは、なかむら(う)です。

[#19306] Re: [BUG] errno == 0 — nobu.nakada@... 2003/01/05

なかだです。

[ruby-dev:19415] Re: [] 内での \001 のマッチ

From: matz@... (Yukihiro Matsumoto)
Date: 2003-01-22 08:40:40 UTC
List: ruby-dev #19415
まつもと ゆきひろです

In message "[ruby-dev:19413] Re: [] 内での \001 のマッチ"
    on 03/01/22, UENO Katsuhiro <unnie@blue.sky.or.jp> writes:

|$KCODEが指定されているときに [] 内に単独で \xnn や \nnn が現れると
|それをマルチバイト文字とみなしているようです。

えーと、じゃなくてRubyの正規表現は数値表記が現れるとマルチバ
イトの一部にもマッチするという凶悪な仕様になってます。将来は
この仕様はなくなるとは思いますが、今この時点でなくすのは互換
性の観点から恐いので鬼車に移行する時点にしましょう。

で、私のパッチはこんな感じです。

--- regex.c	20 Jan 2003 08:29:21 -0000	1.78
+++ regex.c	22 Jan 2003 08:24:42 -0000
@@ -742,3 +742,3 @@ is_in_list(c, b)
 {
-  return is_in_list_sbc(c, b) || is_in_list_mbc(c, b);
+  return is_in_list_sbc(c, b) || (current_mbctype ? is_in_list_mbc(c, b) : 0);
 }
@@ -3840,6 +3840,6 @@ re_match_exec(bufp, string_arg, size, po
 	      if (!not) {
-		part = not = is_in_list_sbc(cc, p);
+		part = not = is_in_list(cc, p);
 	      }
 	    } else {
-	      not = is_in_list_sbc(c, p);
+	      not = is_in_list(c, p);
 	    }
@@ -3849,3 +3849,3 @@ re_match_exec(bufp, string_arg, size, po
 	      c = (unsigned char)translate[c];
-	    not = is_in_list_sbc(c, p);
+	    not = is_in_list(c, p);
 	  }

In This Thread