Forum > General
How to compile *.pas with text-graphic
TJF:
Hello,
I changed a very, very old *.pas and want to compile it with freepascal. There is a lot of text graphic inside, which doesn't compile the way I want (see attachments).
What can I do?
Regards
Thomas
marcov:
It seems to be an encoding issue, and is probably related to the target platform and terminal that you use. Could you specify that?
Try to configure the terminal (encoding) in the same way as the source code.
TJF:
How can I do this?
Sorry, I am not very familiar with freepascal. And it is about 30 years ago, I wrote this with TP5.0...
uses dos,crt
I am using Windows (DOS).
marcov:
This is not Free Pascal this is windows. Create a shortcut to cmd.exe, and then browse the properties of that shortcut.
Or try "chcp 437" before executing.
The problem is that in dos all encodings were the same, source encoding, console encoding and system encoding. Now they are all different.
A FPC dos (go32v2 or msdos) program run under plain dos will still work.
TJF:
Using go32v2 shows the right graphik after compiling - but the program crashes ...
Navigation
[0] Message Index
[#] Next page