|
@@ -1078,7 +1078,7 @@ begin
|
|
if UTF8Enabled then
|
|
if UTF8Enabled then
|
|
external_codepage:=utf8;
|
|
external_codepage:=utf8;
|
|
{$ifdef linux}
|
|
{$ifdef linux}
|
|
- if vcs_device>=0 then
|
|
|
|
|
|
+ if (vcs_device>=0) and (external_codepage<>utf8) then
|
|
begin
|
|
begin
|
|
str(vcs_device,s);
|
|
str(vcs_device,s);
|
|
fname:='/dev/vcsa'+s;
|
|
fname:='/dev/vcsa'+s;
|
|
@@ -1231,8 +1231,14 @@ begin
|
|
begin
|
|
begin
|
|
{Executed in case ttylinux is false (i.e. no vcsa), but
|
|
{Executed in case ttylinux is false (i.e. no vcsa), but
|
|
TERM=linux.}
|
|
TERM=linux.}
|
|
- {Enable the character set set through setfont}
|
|
|
|
- fpwrite(stdoutputhandle,font_custom,3);
|
|
|
|
|
|
+
|
|
|
|
+ { if we're in utf8 mode, we didn't change the font, so
|
|
|
|
+ no need to restore anything }
|
|
|
|
+ if external_codepage<>utf8 then
|
|
|
|
+ begin
|
|
|
|
+ {Enable the character set set through setfont}
|
|
|
|
+ fpwrite(stdoutputhandle,font_custom,3);
|
|
|
|
+ end;
|
|
end;
|
|
end;
|
|
{$ifdef linux}
|
|
{$ifdef linux}
|
|
end;
|
|
end;
|