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


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to