diff --git a/6502/gen6502/vFORTH38/Makefile b/6502/gen6502/vFORTH38/Makefile index f2eff8d..e838209 100644 --- a/6502/gen6502/vFORTH38/Makefile +++ b/6502/gen6502/vFORTH38/Makefile @@ -7,5 +7,5 @@ fth: $(fth_files) # Generic rule for converting .fb blk sources into .fth files. -%.fth: %.fb +%.fth: %.fb fb2fth.py ./fb2fth.py $< $@ diff --git a/6502/gen6502/vFORTH38/fb2fth.py b/6502/gen6502/vFORTH38/fb2fth.py index ec756b0..5403cad 100755 --- a/6502/gen6502/vFORTH38/fb2fth.py +++ b/6502/gen6502/vFORTH38/fb2fth.py @@ -14,7 +14,7 @@ def readToString(inFile): offset = 0 while(offset < len(block)): # sys.stderr.write("block %d offset %d\n" % (blockNo, offset)) - line = block[offset:offset+64].decode(encoding="latin_1") + line = block[offset:offset+64].decode(encoding="cp437") result.append(line.rstrip()) offset += 64 blockNo += 1