diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-06 09:28:03 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-02-06 09:28:03 +0000 |
| commit | 40b87c98859cf7c264f78fe15cc2bd61417d8a9b (patch) | |
| tree | bea332cf97e74e61414f56eced92721ea42dc61d | |
| parent | f231e8a0030a4dc2f08cb3fee0fd5beb1a809254 (diff) | |
| download | ruby-40b87c98859cf7c264f78fe15cc2bd61417d8a9b.tar.gz ruby-40b87c98859cf7c264f78fe15cc2bd61417d8a9b.tar.xz ruby-40b87c98859cf7c264f78fe15cc2bd61417d8a9b.zip | |
* several backports from 1.9
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@5631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 8 | ||||
| -rw-r--r-- | config.sub | 4 | ||||
| -rw-r--r-- | lib/find.rb | 5 | ||||
| -rw-r--r-- | lib/rexml/encodings/ISO-8859-1.rb | 2 | ||||
| -rw-r--r-- | parse.y | 2 |
5 files changed, 15 insertions, 6 deletions
@@ -143,6 +143,14 @@ Mon Jan 26 15:11:47 2004 NAKAMURA Usaku <usa@ruby-lang.org> * sample/exyacc.rb: escape '}' to avoid warning. +Mon Jan 26 14:41:46 2004 Yukihiro Matsumoto <matz@ruby-lang.org> + + * lib/delegate.rb (Delegator::initialize): preserve + singleton_method_added method [ruby-dev:22685] + + * lib/delegate.rb (Delegator::initialize): use Kernel::raise + instead of mere raise. [ruby-dev:22681] + Mon Jan 26 12:47:17 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tcltklib/tcltklib.c: define CONST84 when TCL_MAJOR_VERSION == 7 diff --git a/config.sub b/config.sub index d2c7af03c..b85986a47 100644 --- a/config.sub +++ b/config.sub @@ -3,7 +3,7 @@ # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # 2000, 2001, 2002, 2003 Free Software Foundation, Inc. -timestamp='2003-01-03' +timestamp='2004-01-28' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -118,7 +118,7 @@ esac # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; diff --git a/lib/find.rb b/lib/find.rb index 9ca39cabc..52efde81f 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -36,7 +36,8 @@ module Find paths.collect!{|d| d.dup} while file = paths.shift catch(:prune) do - yield file + next unless File.exist? file + yield file.dup.taint begin if File.lstat(file).directory? then d = Dir.open(file) @@ -50,7 +51,7 @@ module Find else f = File.join(file, f) end - paths.unshift f + paths.unshift f.untaint end ensure d.close diff --git a/lib/rexml/encodings/ISO-8859-1.rb b/lib/rexml/encodings/ISO-8859-1.rb index 5beefbd40..32ddfbc90 100644 --- a/lib/rexml/encodings/ISO-8859-1.rb +++ b/lib/rexml/encodings/ISO-8859-1.rb @@ -1,6 +1,6 @@ module REXML module Encoding - @@__REXML_encoding_methods =<<-EOL + @@__REXML_encoding_methods =<<-'EOL' # Convert from UTF-8 def encode content array_utf8 = content.unpack('U*') @@ -384,7 +384,7 @@ stmts : none } | stmts terms stmt { - $$ = block_append($1, $3); + $$ = block_append($1, newline_node($3)); } | error stmt { |
