aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/encoding/Auto.inc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/encoding/Auto.inc b/src/encoding/Auto.inc
index 3d415095..2f7faa0c 100644
--- a/src/encoding/Auto.inc
+++ b/src/encoding/Auto.inc
@@ -82,7 +82,9 @@ begin
if self.Regex = Nil then
begin
+ {$IFDEF CONSOLE}
writeln('ERROR: UTF8 Regex compilation failed: ', AnsiString(Error), ' at ', ErrorOffset);
+ {$ENDIF}
end
else
begin
@@ -91,12 +93,18 @@ begin
if Error <> Nil then
begin
+ {$IFDEF CONSOLE}
writeln('ERROR: UTF8 Regex study failed: ', AnsiString(Error));
+ {$ENDIF}
end;
end;
end
else
+ begin
+ {$IFDEF CONSOLE}
writeln('ERROR: pcre not loaded. utf-8 autodetection will not work.');
+ {$ENDIF}
+ end;
end;
function TEncoderAuto.GetName(): AnsiString;