--- 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.