diff --git a/ChangeLog b/ChangeLog index a29b67011f..0ac3916b42 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,12 @@ Sun Jan 19 23:08:18 2003 Akinori MUSHA quotes should not be regarded as meta character. This bug or maybe feature was inherited from Perl's shellwords.pl. +Sun Jan 19 14:01:12 2003 UENO Katsuhiro + + * regex.c (is_in_list): should work weill with UTF-8. + + * regex.c (re_match_exec): ditto. + Sat Jan 18 14:53:49 2003 Nobuyoshi Nakada * bignum.c (rb_cstr_to_inum): should not erase all 0s, but diff --git a/hash.c b/hash.c index 257a4c8e47..249bc645a5 100644 --- a/hash.c +++ b/hash.c @@ -101,10 +101,7 @@ rb_any_hash(a) default: DEFER_INTS; hval = rb_funcall(a, id_hash, 0); - if (FIXNUM_P(hval)) { - hval %= 536870923; - } - else { + if (!FIXNUM_P(hval)) { hval = rb_funcall(hval, '%', 1, INT2FIX(536870923)); } ENABLE_INTS; diff --git a/lib/cgi.rb b/lib/cgi.rb index bf7aa85f59..a69fb4cc87 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -942,21 +942,24 @@ convert string charset, and set language to "ja". private :initialize_query def [](key) - value = @params[key][0] - def value.to_ary - [self.dup] - end - def value.[](key) - $stderr.puts <