parser: set LANG=C for sed in Makefile (the sed that rename P* -> A*)
[nit.git] / src / parser / Makefile
index b2a1129..9a3231f 100644 (file)
@@ -25,7 +25,7 @@ all: parser.nit
 # Note that parser_nodes is automatically synced with the grammar
 parser.nit: .nit.sablecc3 xss/*.xss
        ${SABLECC} -c .nit.sablecc3.dump -t xss/main.xss -p usermodule parser_nodes .nit.sablecc3
-       sed -i -e 's/\([ []\)P\([A-Z]\)/\1A\2/g' parser.nit parser_abs.nit parser_prod.nit parser_tables.nit lexer.nit
+       LANG=C sed -i -e 's/\([ \[]\)P\([A-Z]\)/\1A\2/g' parser.nit parser_abs.nit parser_prod.nit parser_tables.nit lexer.nit
 
 clean:
        rm -f -- .nit.sablecc3 .nit.sablecc3.dump || true