pas2CTutorial.wiki
changeset 2014 d61dd7380023
parent 2013 3bccb65d8cac
child 2015 9bcfc5661a37
equal deleted inserted replaced
2013:3bccb65d8cac 2014:d61dd7380023
    12 
    12 
    13 == Building ==
    13 == Building ==
    14 ===Caveats===
    14 ===Caveats===
    15 Note! In version 1.0.0, if your `LOCALE` is set to `C`, building will fail with an error like this:
    15 Note! In version 1.0.0, if your `LOCALE` is set to `C`, building will fail with an error like this:
    16 
    16 
    17 ```
    17 {{{
    18 Preprocessing 'uSound.pas'... pas2c: /builddir/build/BUILD/hedgewars-src-1.0.0/hedgewars/uSound.pas: hGetContents: invalid argument (invalid byte sequence)
    18 Preprocessing 'uSound.pas'... pas2c: /builddir/build/BUILD/hedgewars-src-1.0.0/hedgewars/uSound.pas: hGetContents: invalid argument (invalid byte sequence)
    19 ```
    19 }}}
    20 
    20 
    21 This is because Wuzzy accidentally added unicode characters in the Pascal source code, something which Pas2C doesn't like.
    21 This is because Wuzzy accidentally added unicode characters in the Pascal source code, something which Pas2C doesn't like.
    22 
    22 
    23 If you have this problem, run this shell script in the root of the source directory before building:
    23 If you have this problem, run this shell script in the root of the source directory before building:
    24 
    24 
    25 ```
    25 {{{
    26 for file in hedgewars/uSound.pas hedgewars/uStats.pas; do
    26 for file in hedgewars/uSound.pas hedgewars/uStats.pas; do
    27     iconv -f utf-8 -t ascii//TRANSLIT $file -o $file.tmp;
    27     iconv -f utf-8 -t ascii//TRANSLIT $file -o $file.tmp;
    28     mv $file.tmp $file;
    28     mv $file.tmp $file;
    29 done
    29 done
    30 ```
    30 }}}
    31 
    31 
    32 This will be fixed in the next version.
    32 This will be fixed in the next version.
    33 
    33 
    34 ===Automatic===
    34 ===Automatic===
    35 
    35