* Use the unixcp unit to set a default code page for ansistrings on unix-like systems.

git-svn-id: trunk@23671 -
This commit is contained in:
yury 2013-02-28 18:24:29 +00:00
parent 2b2a68446d
commit ee0a338127

View File

@ -33,6 +33,10 @@ uses
{$ifdef WATCOM}
emu387,
{$endif WATCOM}
{$ifdef unix}
{ system code page stuff for unix }
unixcp,
{$endif}
{$IFNDEF USE_FAKE_SYSUTILS}
sysutils,math,
{$ELSE}
@ -173,6 +177,10 @@ procedure InitCompiler(const cmd:TCmdStr);
begin
if CompilerInited then
DoneCompiler;
{$ifdef unix}
{ Set default code page for ansistrings on unix-like systems }
DefaultSystemCodePage:=GetSystemCodePage;
{$endif}
{ inits which need to be done before the arguments are parsed }
InitSystems;
{ fileutils depends on source_info so it must be after systems }