foute yencodings beter afhandelen

This commit is contained in:
Ward Wouts 2004-10-18 08:13:47 +00:00
parent 39aae3d4e0
commit 4ceaf63c27

View file

@ -1,4 +1,4 @@
# $Dwarf: yenc.rb,v 1.9 2003/07/20 20:32:01 ward Exp $
# $Dwarf: yenc.rb,v 1.10 2004/06/16 08:14:50 ward Exp $
# $Source$
#
@ -54,8 +54,12 @@ def _ydecode_line(line)
while i < ll
if line[i] == 0x3d
i += 1
if i == ll
raise PermError, "Escape char found as last char on line. This is not allowed by the yEnc standard"
else
line[i] -= 64
end
end
ostr << @ymap[line[i]]
i += 1
end