More fixes for the OS X builds.

* src/bin/common_r.hh: Include common_sys.hh first.
* src/sanity/80columns.test: Set LANG.
This commit is contained in:
Alexandre Duret-Lutz 2012-09-17 11:51:44 +02:00
parent 42665b87b0
commit 0c005c8159
2 changed files with 8 additions and 2 deletions

View file

@ -22,6 +22,7 @@
#ifndef SPOT_BIN_COMMON_R_HH
#define SPOT_BIN_COMMON_R_HH
#include "common_sys.hh"
#include "ltlvisit/simplify.hh"
#define OPT_R 'r'

View file

@ -6,9 +6,14 @@ set -e
rm -f failures
LANG=en_US.UTF-8
export LANG
if [ "`echo '{r₁|r₂|r₃}' | wc -m`" != 11 ]; then
# The current local does not grok unicode.
# We still run this test, but only on lines are that purely ascii.
LANG=C
export LANG
# The current locale does not grok unicode.
# We still run this test, but only on lines that are purely ascii.
x='[^ -~]' # This blank is a tab.
else
x='.'