NeedRTLAnsi function
Indicates if the OS requires use of AnsiToUTF8 and UTF8ToAnsi for the RTL.
Declaration
function NeedRTLAnsi: BooleanFunction result
True when the system encoding is not UTF-8.
Description
NeedRTLAnsi is a
Boolean function that indicates if the
OS requires use of
AnsiToUTF8 and
UTF8ToAnsi for the
RTL. AnsiToUTF8 and UTF8ToAnsi need a widestring manager under Linux, BSD,
and Mac OSX. Normally these OS's use UTF-8 as the system encoding so the
WideStringManager is not needed.
For the Windows environment, NeedRTLAnsi is True if the default system
code page is not CP_UTF8. For UNIX-like environments, NeedRTLAnsi
is True when any of the LC_ALL, LC_MESSAGES, or
LANG environment variables contain a language code other than UTF-8.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
