[cairo] Invoking autogen.sh in non-english locales

Jost Boekemeier jost2345 at yahoo.de
Sat Aug 14 01:29:29 PDT 2004


Your string->number conversion hacks do not work in non-english locales:

bash-2.05b$ echo 2.59 | awk '{ print $1, $1+0, $1 >= 2.50; } '
2.59 2 0

bash-2.05b$ echo 2.59 | LANG=C awk '{ print $1, $1+0, $1 >= 2.50; } '
2.59 2.59 1

The result is that most of your tests fail.


To avoid this problem add a

  LANG=C

to the head all such scripts.


Jost




More information about the cairo mailing list