summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-05 09:36:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-05 09:36:54 +0000
commit03581d5826a7f2ed7b7f9c0691220c1a5ac00988 (patch)
tree123b6e6109b307d0006908538b2daaa653f0639f /lib
parentafa2732b784aaac7800ba03d5617d5d395964149 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/find.rb1
-rw-r--r--lib/jcode.rb4
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/find.rb b/lib/find.rb
index 80bb5d6..b220018 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 e566f96..7175c1b 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