Add MODPY_TEST_LOCALE. In general python tests want an UTF-8 locale.

If needed this allows to overwrite it.

I looks like python preferes C.UTF-8. But Ingo pointed out that on
OpenBSD en_US.UTF-8 is prefered and the former is just a link to the later.

from Kurt Mosiejczuk
ok sthen@
This commit is contained in:
remi 2019-03-18 21:30:48 +00:00
parent 9327f6776d
commit 25abb64835

View File

@ -1,4 +1,4 @@
# $OpenBSD: python.port.mk,v 1.101 2019/03/18 21:19:18 remi Exp $
# $OpenBSD: python.port.mk,v 1.102 2019/03/18 21:30:48 remi Exp $
#
# python.port.mk - Xavier Santolaria <xavier@santolaria.net>
# This file is in the public domain.
@ -165,6 +165,10 @@ MODPY_TEST_CMD = cd ${WRKSRC} && ${SETENV} ${ALL_TEST_ENV} \
${MODPY_BIN} ./${MODPY_SETUP} \
${MODPY_SETUP_ARGS}
MODPY_TEST_LOCALE ?= LC_CTYPE=en_US.UTF-8
TEST_ENV += ${MODPY_TEST_LOCALE}
SUBST_VARS := MODPY_PYCACHE MODPY_COMMENT MODPY_ABI3SO MODPY_PYC_MAGIC_TAG \
MODPY_BIN MODPY_EGG_VERSION MODPY_VERSION MODPY_BIN_SUFFIX \
MODPY_PY_PREFIX MODPY_PYOEXTENSION ${SUBST_VARS}