fix array decoding

This commit is contained in:
Ward Wouts 2003-04-20 18:02:51 +00:00
parent 3670d86420
commit e93ed788bd

View file

@ -1,6 +1,6 @@
################################# #################################
# #
# $Dwarf: uuencode.rb,v 1.2 2003/04/20 16:34:11 ward Exp $ # $Dwarf: uuencode.rb,v 1.3 2003/04/20 16:58:07 ward Exp $
# $Source$ # $Source$
# #
# article.rb # article.rb
@ -141,8 +141,10 @@ def _uudecode_array(data)
next if line =~ /[a-z]/ next if line =~ /[a-z]/
next if line == nil next if line == nil
next unless ((((line[0] - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i next unless ((((line[0] - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i
unless line.unpack("u").eql?([""])
decode.concat(line.unpack("u")) decode.concat(line.unpack("u"))
end end
end
print "No \"end\" found!!!\n" print "No \"end\" found!!!\n"
return false return false