[fpc-pascal] weird printout of char

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


On Mon, Nov 5, 2012 at 3:41 PM, Ewald
<bloody.middlefinger at yellowcouch.org> wrote:
> Try this: (a char is only one byte, you're trying to print a multi-byte
> character: print multiple one-byte characters)
> WriteLn(#$d7, #$90);

Breaking it into two bytes works.

>
>
> On 11/05/2012 03:25 PM, ik wrote:
>> 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
>> _______________________________________________
>> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
>> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>>
>
>
> --
> Ewald
>
> Events don't necessarily happen in chronological order; yet somehow they do persist to happen. Sometimes.
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal



More information about the fpc-pascal mailing list