[#19685] [Oniguruma] Version 1.8.1 — "K.Kosako" <kosako@...>

ftp.ruby-lang.orgに、onigd20030301.tar.gzを置きました。

92 messages 2003/03/01
[#19687] Re: [Oniguruma] Version 1.8.1 — matz@... (Yukihiro Matsumoto) 2003/03/02

まつもと ゆきひろです

[#19688] Re: [Oniguruma] Version 1.8.1 — Tanaka Akira <akr@...17n.org> 2003/03/02

In article <1046613803.268414.3770.nullmailer@picachu.netlab.jp>,

[#19748] [Oniguruma] Version 1.8.2 — "K.Kosako" <kosako@...> 2003/03/05

Tanaka Akiraさんの<871y1pu8am.fsf@serein.a02.aist.go.jp>から

[#19749] Re: [Oniguruma] Version 1.8.2 — "Akinori MUSHA" <knu@...> 2003/03/05

At Wed, 5 Mar 2003 18:07:17 +0900,

[#19750] Re: [Oniguruma] Version 1.8.2 — "K.Kosako" <kosako@...> 2003/03/05

Akinori MUSHAさんの<86r89mi39s.wl%knu@iDaemons.org>から

[#19793] Re: [Oniguruma] Version 1.8.2 — "Akinori MUSHA" <knu@...> 2003/03/11

At Wed, 5 Mar 2003 18:18:31 +0900,

[#19808] [Oniguruma] Version 1.8.4 — "K.Kosako" <kosako@...> 2003/03/12

Akinori MUSHAさんの<86bs0iqoif.wl%knu@iDaemons.org>から

[#19825] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/16

In article <20030312044626.2D879C2@helium.ruby-lang.org>,

[#19858] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/20

In article <20030318015042.DCBB859A@helium.ruby-lang.org>,

[#19866] Re: [Oniguruma] Version 1.8.4 — "K.Kosako" <kosako@...> 2003/03/21

Tanaka Akiraさんの<87llzavfl9.fsf@serein.a02.aist.go.jp>から

[#19868] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/21

In article <20030321040221.EC03C5AA@helium.ruby-lang.org>,

[#19869] Re: [Oniguruma] Version 1.8.4 — matz@... (Yukihiro Matsumoto) 2003/03/21

まつもと ゆきひろです

[#19870] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/21

In article <1048256492.877945.30145.nullmailer@picachu.netlab.jp>,

[#19873] Re: [Oniguruma] Version 1.8.4 — matz@... (Yukihiro Matsumoto) 2003/03/21

まつもと ゆきひろです

[#19912] Re: [Oniguruma] Version 1.8.4 — TAKAHASHI Masayoshi <takahashi@...> 2003/03/26

高橋征義です。

[#19913] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/26

In article <20030326.151120.41647198.takahashi@twinspark.co.jp>,

[#19920] Re: [Oniguruma] Version 1.8.4 — Tanaka Akira <akr@...17n.org> 2003/03/27

In article <008c01c2f360$9ac1b030$85222fc0@sarion.co.jp>,

[#19698] 1.8.0 preview2 — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

19 messages 2003/03/03
[#19716] [1.8.0 preview2] HP-UX 11.11 — WATANABE Tetsuya <tetsu@...> 2003/03/04

渡辺哲也です。

[#19718] Re: [1.8.0 preview2] HP-UX 11.11 — WATANABE Hirofumi <eban@...> 2003/03/04

わたなべです。

[#19751] (1.8.0-preview2) Proc#call — Fukumoto Atsushi <fukumoto@...>

1.8.0-preview2 で、 Proc#call の動作がへんです。

51 messages 2003/03/06
[#19752] Re: (1.8.0-preview2) Proc#call — nobu.nakada@... 2003/03/07

なかだです。

[#19754] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/07

まつもと ゆきひろです

[#19755] Re: (1.8.0-preview2) Proc#call — nobu.nakada@... 2003/03/07

なかだです。

[#19756] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/07

まつもと ゆきひろです

[#19770] Re: (1.8.0-preview2) Proc#call — nobu.nakada@... 2003/03/08

なかだです。

[#19786] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/10

まつもと ゆきひろです

[#19787] Re: (1.8.0-preview2) Proc#call — nobu.nakada@... 2003/03/10

なかだです。

[#19788] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/10

まつもと ゆきひろです

[#19789] Re: (1.8.0-preview2) Proc#call — Koji Arai <JCA02266@...> 2003/03/11

新井です。

[#19797] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/11

まつもと ゆきひろです

[#19798] Re: (1.8.0-preview2) Proc#call — Masatoshi SEKI <m_seki@...> 2003/03/11

[#19799] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/03/11

[#19809] Re: (1.8.0-preview2) Proc#call — Masatoshi SEKI <m_seki@...> 2003/03/12

[#20090] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/04/25

まつもと ゆきひろです

[#20101] Re: (1.8.0-preview2) Proc#call — Masatoshi SEKI <m_seki@...> 2003/04/28

[#20102] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/04/28

まつもと ゆきひろです

[#20148] Re: (1.8.0-preview2) Proc#call — Masatoshi SEKI <m_seki@...> 2003/05/03

[#20179] Re: (1.8.0-preview2) Proc#call — m_seki@... 2003/05/07

[#20180] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/05/07

まつもと ゆきひろです

[#20196] Re: (1.8.0-preview2) Proc#call — Masatoshi SEKI <m_seki@...> 2003/05/17

[#20200] Re: (1.8.0-preview2) Proc#call — matz@... (Yukihiro Matsumoto) 2003/05/18

まつもと ゆきひろです

[#19865] dl in $SAFE=4 — Minero Aoki <aamine@...>

あおきです。

15 messages 2003/03/21
[#19871] Re: dl in $SAFE=4 — matz@... (Yukihiro Matsumoto) 2003/03/21

まつもと ゆきひろです

[ruby-dev:19870] Re: [Oniguruma] Version 1.8.4

From: Tanaka Akira <akr@...17n.org>
Date: 2003-03-21 14:30:00 UTC
List: ruby-dev #19870
In article <1048256492.877945.30145.nullmailer@picachu.netlab.jp>,
  matz@ruby-lang.org (Yukihiro Matsumoto) writes:

> rb_warn()というRuby固有の関数を直接呼ぶのは抵抗があるので、
> 少々細工してから取り込むことにします。

すいません。あれだと

  /[0-[]/

のように range の最後に [ がきた時に警告しないのでベースにするのは次の
にしてください。

Index: regex.c
===================================================================
RCS file: /src/ruby/regex.c,v
retrieving revision 1.80
diff -u -r1.80 regex.c
--- regex.c	24 Jan 2003 09:18:04 -0000	1.80
+++ regex.c	21 Mar 2003 14:23:01 -0000
@@ -1464,6 +1464,7 @@
 	  if (p == p0 + 1) {
 	    if (p == pend)
 	      FREE_AND_RETURN(stackb, "invalid regular expression; empty character class");
+            rb_warn("character class has `]' without escape");
 	  }
 	  else 
 	    /* Stop if this isn't merely a ] inside a bracket
@@ -1481,6 +1482,9 @@
 	}
 	had_char_class = 0;
 
+	if (c == '-' || (c == '[' && *p != ':'))
+          rb_warn("character class has `%c' without escape", c);
+
 	/* \ escapes characters when inside [...].  */
 	if (c == '\\') {
 	  PATFETCH_RAW(c);
@@ -1678,6 +1682,7 @@
 	    c1++;
 	    while (c1--)    
 	      PATUNFETCH;
+            rb_warn("character class has `[' without escape");
 	    SET_LIST_BIT(TRANSLATE_P()?translate['[']:'[');
 	    SET_LIST_BIT(TRANSLATE_P()?translate[':']:':');
 	    had_char_class = 0;

それはそれとして、これを当てると(静的なリテラルとして書いてあるぶんに
ついては) ruby -c でチェックできるわけですが、添付されてるものに関して
だけでもこのくらいあるようです。うぅむ。ちょっとやりすぎかも?

ext/extmk.rb:130: warning: character class has `-' without escape
ext/tk/lib/tk.rb:608: warning: character class has `]' without escape
ext/tk/lib/tk.rb:608: warning: character class has `[' without escape
ext/tk/lib/tk.rb:623: warning: character class has `]' without escape
ext/tk/lib/tk.rb:623: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1182: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1182: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1186: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1186: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1189: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1189: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1217: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1217: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1229: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1229: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1234: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1234: warning: character class has `[' without escape
ext/tk/lib/tk.rb:1441: warning: character class has `]' without escape
ext/tk/lib/tk.rb:1441: warning: character class has `[' without escape
instruby.rb:28: warning: character class has `-' without escape
lib/benchmark.rb:580: warning: character class has `-' without escape
lib/benchmark.rb:581: warning: character class has `-' without escape
lib/benchmark.rb:582: warning: character class has `-' without escape
lib/benchmark.rb:583: warning: character class has `-' without escape
lib/benchmark.rb:584: warning: character class has `-' without escape
lib/benchmark.rb:585: warning: character class has `-' without escape
lib/benchmark.rb:586: warning: character class has `-' without escape
lib/cgi.rb:239: warning: character class has `-' without escape
lib/date/format.rb:83: warning: character class has `-' without escape
lib/date/format.rb:166: warning: character class has `-' without escape
lib/date/format.rb:176: warning: character class has `-' without escape
lib/date/format.rb:230: warning: character class has `-' without escape
lib/date/format.rb:252: warning: character class has `-' without escape
lib/date/format.rb:311: warning: character class has `-' without escape
lib/date/format.rb:382: warning: character class has `-' without escape
lib/date/format.rb:382: warning: character class has `-' without escape
lib/date/format.rb:447: warning: character class has `-' without escape
lib/debug.rb:428: warning: character class has `-' without escape
lib/getoptlong.rb:183: warning: character class has `-' without escape
lib/irb/ruby-lex.rb:951: warning: character class has `-' without escape
lib/jcode.rb:12: warning: character class has `]' without escape
lib/jcode.rb:12: warning: character class has `[' without escape
lib/jcode.rb:12: warning: character class has `]' without escape
lib/jcode.rb:12: warning: character class has `[' without escape
lib/optparse.rb:968: warning: character class has `]' without escape
lib/optparse.rb:968: warning: character class has `[' without escape
lib/optparse.rb:978: warning: character class has `]' without escape
lib/optparse.rb:978: warning: character class has `[' without escape
lib/optparse.rb:990: warning: character class has `]' without escape
lib/optparse.rb:990: warning: character class has `[' without escape
lib/time.rb:72: warning: character class has `-' without escape
lib/time.rb:74: warning: character class has `-' without escape
-- 
[田中 哲][たなか あきら][Tanaka Akira]

In This Thread