X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Makefile;h=3e48fc1fc28d45926a35493f2fa115d935532d3e;hb=1cb0faae7b13b38890be635a6018fbf86d5e418c;hp=b19be5dce9417a43d5048b7fa0ff2ea98245dc3f;hpb=7f08ddfdcfd01a8bee87c9be99550b7c6f87bdef;p=debbugs.git diff --git a/Makefile b/Makefile index b19be5d..3e48fc1 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,8 @@ install_exec := install -m755 -p install_data := install -m644 -p PERL ?= /usr/bin/perl +# Some tests need to run under an UTF-8 locale. +UTF8_LOCALE ?= C.UTF-8 all: build test @@ -32,13 +34,13 @@ build: $(MAKE) -f Makefile.perl test: - $(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))' + LC_ALL=$(UTF8_LOCALE) $(PERL) -MTest::Harness -I. -e 'runtests(glob(q(t/*.t)))' test_%: t/%.t - $(PERL) -MTest::Harness -I. -e 'runtests(q($<))' + LC_ALL=$(UTF8_LOCALE) $(PERL) -MTest::Harness -I. -e 'runtests(q($<))' testcover: - PERLLIB=t/cover_lib/ cover -test + LC_ALL=$(UTF8_LOCALE) PERL5LIB=t/cover_lib/:. cover -test clean: if [ -e Makefile.perl ]; then \