Fix encoding issues

git-svn-id: file:///home/svn/framework3/trunk@11855 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2011-03-01 16:14:44 +00:00
parent 261ab6c014
commit df937d6245
1 changed files with 5 additions and 0 deletions

View File

@ -15,6 +15,11 @@ def usage
exit
end
# Force binary encoding for Ruby versions that support it
if(Object.const_defined?('Encoding') and Encoding.respond_to?('default_external='))
Encoding.default_external = Encoding.default_internal = "binary"
end
dump = ARGV.shift || usage()
list = ARGV.shift || File.join(File.dirname(__FILE__), "..", "data", "wordlists", "vxworks_collide_20.txt")