some fixes

This commit is contained in:
Ward Wouts 2025-01-09 07:45:12 +01:00
parent 8c20f8435f
commit cb321d68ed
3 changed files with 35 additions and 31 deletions

View file

@ -90,7 +90,8 @@ def _uudecode_file(file, outfile)
next if line =~ /[a-z]/
next if line == nil
next unless ((((line[0].ord - 32) & 077) + 2) / 3).to_i == (line.length/4).to_i
line.unpack("u").each{|x| outfile.print x}
#line.unpack("u").each{|x| outfile.print x}
line.unpack("u").each{|x| outfile.write x}
end
puts "No \"end\" found!!!"