From 03581d5826a7f2ed7b7f9c0691220c1a5ac00988 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 5 Dec 2000 09:36:54 +0000 Subject: matz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/find.rb | 1 + lib/jcode.rb | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/find.rb b/lib/find.rb index 80bb5d6f59..b220018b6b 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -9,6 +9,7 @@ module Find def find(*path) + path.collect!{|d| d.dup} while file = path.shift catch(:prune) do yield file diff --git a/lib/jcode.rb b/lib/jcode.rb index e566f96f60..7175c1b4b6 100644 --- a/lib/jcode.rb +++ b/lib/jcode.rb @@ -1,5 +1,9 @@ # jcode.rb - ruby code to handle japanese (EUC/SJIS) string +if $VERBOSE && $KCODE == "NONE" + STDERR.puts "Warning: $KCODE is NONE." +end + $vsave, $VERBOSE = $VERBOSE, false class String printf STDERR, "feel free for some warnings:\n" if $VERBOSE -- cgit v1.2.3