[fpc-pascal] SetCodePage in older FPC 3.0.4

Michael Van Canneyt michael at freepascal.org
Wed May 29 12:19:06 CEST 2019



On Wed, 29 May 2019, Michael Van Canneyt wrote:

>
>
> On Wed, 29 May 2019, AlexeyT wrote:
>
>>> FPC generally uses system library functions for the conversion, so it 
>> does not depend on the FPC version.
>> 
>> But FPC has such files. Are they used in SetCodePage code?
>> 
>> user at PC:~/fpcupdeluxe/fpcsrc/packages/rtl-unicode/src/inc$ ls cp*
>> cp895.pas  cp932.pas  cp936.pas  cp949.pas  cp950.pas cpbuildu.pp
>> 
>> and
>> 
>> user at PC:~/fpcupdeluxe/fpcsrc/rtl/ucmaps$ ls
>
> These files are not used, they predate the fpWidestring unit, they are for 
> the
> charset unit, which can be used to manually convert codepages.

Correction: if you use the fpwidestring unit, these charset units are used.

Michael.


More information about the fpc-pascal mailing list