GetSystemCodepage

Return the system code page based on the program environment.

Declaration

Source position: unixcp.pp line 638

  function GetSystemCodepage : TSystemCodePage;

Description

GetSystemCodepage returns the system code page, based on one of the environment variables LC_ALL, LC_CTYPE or LANG. The first non-empty variable (in the order mentioned here) is used.

Errors

If none is found, then a system default is used: Linux and Darwin use CP_UTF8, others use CP_ASCII.

See also

Name Description
GetCodepageByName Find code page by name
GetSystemCodepage Return the system code page based on the program environment.
UnixCpMap Map with codepage names.

results matching ""

    No results matching ""