[fpc-pascal] weird printout of char

ik idokan at gmail.com
Mon Nov 5 15:25:01 CET 2012


Hello,

I have a program like this:

---------
program print;
begin
  writeln(#$d790); // Should print א
end.
----------

I print this to a file:

./program > file

In hex editor the value 3F A0

It also the same on normal terminal.

I'm using Free Pascal Compiler version 2.6.0 [2012/05/17] for x86_64
Under Linux.

What am I missing or doing wrong ?

Thanks,
Ido



More information about the fpc-pascal mailing list