[fpc-pascal] questions mark linux and windows
Luis Fernando Del Aguila Mejía
luis3000 at ec-red.com
Wed Jul 21 20:47:05 CEST 2010
I wrote this program.
var c,d: char;
Begin
c:=#$00B1;
Writeln(byte(c));
Writeln(c);
d:=#$0080;
Writeln(byte(d));
Writeln(d);
End.
When I compile on Linux, the variable "c" stores the value #$B1, and the
variable "d" stores the value #$80.
But when I compile the program in Windows, "c" storage #$B1, and "d" store
#$3F.
In windows, puts a question mark for the range : #$0080 to #$009F.
My questions is :
Why put the second byte in Linux and Windows puts a question mark?
P.D. The source code is at Win-1252
Thanks.
Luis Del Aguila
More information about the fpc-pascal
mailing list