[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'System' (#rtl)

DefaultRTLFileSystemCodePage

Code page in which to return system-returned filenames

Declaration

Source position: systemh.inc line 692

var DefaultRTLFileSystemCodePage: TSystemCodePage = ;

Description

DefaultRTLFileSystemCodePage determines the code page to which file/path names are translated before they are returned from RawByteString file/path RTL routines.

Examples include the file/path names returned by the RawbyteString versions of SysUtils.FindFirst and GetDir.

The main reason for its existence is to enable the RTL to provide backward compatibility with earlier versions of FPC, as these always returned strings encoded in whatever the OS' single byte API used (normally DefaultSystemCodePage).

The initial value of this variable depends on the platform:

The value of this variable can be set using the SetMultiByteRTLFileSystemCodePage call.

See also

DefaultSystemCodePage

  

Current system codepage.

DefaultFileSystemCodePage

  

Codepage to use for filenames

SetMultiByteRTLFileSystemCodePage

  

Set codepage used when interpreting strings from OS single-byte filesystem APIs


Documentation generated on: Sep 28 2017