|
|
|
|
@ -79,11 +79,9 @@ tcl::namespace::eval punk::ansi::sauce {
|
|
|
|
|
set commentlines [list] |
|
|
|
|
for {set c 0} {$c < $clines} {incr c} { |
|
|
|
|
set rawline [chan read $fd 64] |
|
|
|
|
if {![catch {binary scan $rawline C* str} errM]} { |
|
|
|
|
set ln [format %-64s $str] |
|
|
|
|
} else { |
|
|
|
|
set ln [string repeat " " 64] |
|
|
|
|
} |
|
|
|
|
set str [lib::get_string $rawline] |
|
|
|
|
set ln [format %-64s $str] |
|
|
|
|
|
|
|
|
|
if {![catch {encoding convertfrom cp437 $ln} line]} { |
|
|
|
|
lappend commentlines $line |
|
|
|
|
} else { |
|
|
|
|
|