diff options
author | s_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-05 14:19:51 +0000 |
---|---|---|
committer | s_alexander <s_alexander@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2009-12-05 14:19:51 +0000 |
commit | 35b181b5b78b5ce81409ec8ebe69b47d0e4ec716 (patch) | |
tree | 324990838dede83be4da3a5b3bf8fc846057debf /src/encoding | |
parent | b8bd3476bb365aef4d005460de2f9ed1e147d013 (diff) | |
download | usdx-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/encoding')
-rw-r--r-- | src/encoding/Auto.inc | 8 |
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; |