Sign in Join
FPDoc Onlineexperiment

SetMultiByteRTLFileSystemCodePage procedure

In unit System

Set codepage used when interpreting strings from OS single-byte file system APIs.

Declaration

pascal
procedure SetMultiByteRTLFileSystemCodePage(CodePage: TSystemCodePage)

Description

SetMultiByteRTLFileSystemCodePage sets the codepage used to interpreted strings returned by single-byte OS file system APIs to CodePage.

The effect of this change is that the default codepage used to translate single byte strings obtained from the OS to single-byte codepage-aware strings or multi-byte strings changes, and strings obtained from the codepage-aware file system APIs will be interpreted using the new codepage.

his constant is not used if the file system API of the OS is multi-byte (such as on Windows).

Do not set DefaultRTLFileSystemCodePage directly, as additional actions may need to be done when changing the code page.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.