summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-14 20:13:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-02-14 20:13:27 +0000
commit1c923eb2306a7782b6bd3f0d8cb30ad6dde21104 (patch)
tree8040154d2065247cfdbc75e043504f49e6812b74
parent0da31416f1b0d3b24e09fb19a6576bb3254c7e91 (diff)
Set encoding as ASCII-8BIT. [Bug #6027]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/ruby/memory_status.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/memory_status.rb b/test/ruby/memory_status.rb
index f504c0a736..cd4a62c1c0 100644
--- a/test/ruby/memory_status.rb
+++ b/test/ruby/memory_status.rb
@@ -7,7 +7,7 @@ module Memory
PROC_FILE = procfile
VM_PAT = /^Vm(\w+):\s+(\d+)/
def self.read_status
- IO.foreach(PROC_FILE) do |l|
+ IO.foreach(PROC_FILE, encoding: Encoding::ASCII_8BIT) do |l|
yield($1.downcase.intern, $2.to_i * 1024) if VM_PAT =~ l
end
end