[fpc-devel]console cp

Pápai András APapai at mol.hu
Fri Nov 9 15:01:08 CET 2001


It is supported only on Windows NT (and NT based win versions)
(SetConsoleCP, SetConsoleOutputCP API functions).

On a Win9x system a little trick may help (not 100% sure):
+ Install display.sys with a modified (ANSI compatible) font file
+ install a new keyboard driver (OEM chars mapped to ANSI chars)
   Non-english keyboards only
+ and call SetFileAPIsToANSI API function at program beginning.

Andras

> -----Original Message-----
> From: Rimgaudas Laucius [mailto:rimga at ktl.mii.lt]
> Sent: Friday, November 09, 2001 12:34 PM
> To: fpc-devel at deadlock.et.tudelft.nl
> Subject: [fpc-devel]console cp
> 
> 
> Hi,
> why does Windows console aplications uses OEM code page, not 
> ANSI? Could i
> change it somehow (i am talking about Win9x)? Maybe i can 
> change something
> in API units and then get this.
> 
> rimga at ktl.mii.lt
> 
> 
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
> 




More information about the fpc-devel mailing list