GetSystemCodepage function
Return the system code page based on the program environment.
Declaration
function GetSystemCodepage: TSystemCodePageFunction result
Detected code page, or system default if no system found.
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
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
