Date: Fri, 7 Apr 2017 23:16:15 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r437963 - head/dns/libpsl Message-ID: <201704072316.v37NGFnk012900@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Fri Apr 7 23:16:15 2017 New Revision: 437963 URL: https://svnweb.freebsd.org/changeset/ports/437963 Log: 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) Modified: head/dns/libpsl/Makefile Modified: head/dns/libpsl/Makefile ============================================================================== --- head/dns/libpsl/Makefile Fri Apr 7 22:32:01 2017 (r437962) +++ head/dns/libpsl/Makefile Fri Apr 7 23:16:15 2017 (r437963) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704072316.v37NGFnk012900>