aboutsummaryrefslogtreecommitdiffstats
path: root/dns/libpsl/Makefile
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2017-04-08 07:16:15 +0800
committersunpoet <sunpoet@FreeBSD.org>2017-04-08 07:16:15 +0800
commitcebf49b046b09881b365b107f3ca9b9f5ee7143d (patch)
treec3cd0ff8d72eda115a5c860c0a849d3855c78218 /dns/libpsl/Makefile
parent02229ce3a0c1d4743ea40e714a08710f8feec015 (diff)
downloadfreebsd-ports-gnome-cebf49b046b09881b365b107f3ca9b9f5ee7143d.tar.gz
freebsd-ports-gnome-cebf49b046b09881b365b107f3ca9b9f5ee7143d.tar.zst
freebsd-ports-gnome-cebf49b046b09881b365b107f3ca9b9f5ee7143d.zip
Use UTF-8 locale to ensure psl-make-dafsa processing
The error message using C locale is as follows: ./psl-make-dafsa --output-format=cxx+ "/usr/local/share/public_suffix_list/public_suffix_list.dat" suffixes_dafsa.c Traceback (most recent call last): File "./psl-make-dafsa", line 695, in <module> sys.exit(main()) File "./psl-make-dafsa", line 689, in main outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs)) File "./psl-make-dafsa", line 559, in parse_psl for line in infile: File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 7619: ordinal not in range(128)
Diffstat (limited to 'dns/libpsl/Makefile')
-rw-r--r--dns/libpsl/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/dns/libpsl/Makefile b/dns/libpsl/Makefile
index ed227fd600e7..dd12c7956be7 100644
--- a/dns/libpsl/Makefile
+++ b/dns/libpsl/Makefile
@@ -29,6 +29,7 @@ CONFIGURE_ARGS= --enable-man \
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
+USE_LOCALE= en_US.UTF-8
USES= autoreconf libtool localbase:ldflags pathfix pkgconfig python:build shebangfix
GH_ACCOUNT= rockdaboot