# HG changeset patch # User Wuzzy # Date 1570824130 -3600 # Node ID d61dd738002368c3c2fe9c6f5db23f043fda2cb8 # Parent 3bccb65d8cac7319b630dc3a60a8ba27fb98ff1a pas2CTutorial: fix syntax diff -r 3bccb65d8cac -r d61dd7380023 pas2CTutorial.wiki --- a/pas2CTutorial.wiki Fri Oct 11 21:01:27 2019 +0100 +++ b/pas2CTutorial.wiki Fri Oct 11 21:02:10 2019 +0100 @@ -14,20 +14,20 @@ ===Caveats=== Note! In version 1.0.0, if your `LOCALE` is set to `C`, building will fail with an error like this: -``` +{{{ Preprocessing 'uSound.pas'... pas2c: /builddir/build/BUILD/hedgewars-src-1.0.0/hedgewars/uSound.pas: hGetContents: invalid argument (invalid byte sequence) -``` +}}} This is because Wuzzy accidentally added unicode characters in the Pascal source code, something which Pas2C doesn't like. If you have this problem, run this shell script in the root of the source directory before building: -``` +{{{ for file in hedgewars/uSound.pas hedgewars/uStats.pas; do iconv -f utf-8 -t ascii//TRANSLIT $file -o $file.tmp; mv $file.tmp $file; done -``` +}}} This will be fixed in the next version.