summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 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