aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authors_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-05 14:19:51 +0000
committers_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-05 14:19:51 +0000
commit35b181b5b78b5ce81409ec8ebe69b47d0e4ec716 (patch)
tree324990838dede83be4da3a5b3bf8fc846057debf /src
parentb8bd3476bb365aef4d005460de2f9ed1e147d013 (diff)
downloadusdx-35b181b5b78b5ce81409ec8ebe69b47d0e4ec716.tar.gz
usdx-35b181b5b78b5ce81409ec8ebe69b47d0e4ec716.tar.xz
usdx-35b181b5b78b5ce81409ec8ebe69b47d0e4ec716.zip
only use writeln if CONSOLE is defined (*hope* that fixes the exception without pcre3.dll on windows)
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1969 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-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;