diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-05 09:36:54 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-12-05 09:36:54 +0000 |
commit | c7d585c7c7e6028f8dcb9a26f0827cfec34c6005 (patch) | |
tree | 123b6e6109b307d0006908538b2daaa653f0639f /lib | |
parent | b5ca10fe8729f9baa63b47e306690428ed6e35cc (diff) | |
download | ruby-c7d585c7c7e6028f8dcb9a26f0827cfec34c6005.tar.gz ruby-c7d585c7c7e6028f8dcb9a26f0827cfec34c6005.tar.xz ruby-c7d585c7c7e6028f8dcb9a26f0827cfec34c6005.zip |
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r-- | lib/find.rb | 1 | ||||
-rw-r--r-- | lib/jcode.rb | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/find.rb b/lib/find.rb index 80bb5d6f5..b220018b6 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 e566f96f6..7175c1b4b 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 |