Skip to content

Commit

Permalink
Add UCS-4 support check for Python in build-css-testsuites.sh (#13696)
Browse files Browse the repository at this point in the history
CSS test suite build system requires Python UCS-4 support.

Add this check in css/build-css-testsuites.sh.

Fixes: #5504
  • Loading branch information
qiuzhong authored and gsnedders committed Oct 24, 2018
1 parent b96a4c6 commit 32150f7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions css/build-css-testsuites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ main() {
exit 1
fi

# The maximum Unicode code point is U+10FFFF = 1114111
if [ `$PYTHON -c 'import sys; print(sys.maxunicode)'` != "1114111" ]; then
echo "UCS-4 support for Python is required"
exit 1
fi

virtualenv -p $PYTHON $VENV || { echo "Please ensure virtualenv is installed"; exit 2; }
fi

Expand Down

0 comments on commit 32150f7

Please sign in to comment.