svn commit: r437963 - head/dns/libpsl

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Fri Apr 7 23:16:16 UTC 2017


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


More information about the svn-ports-head mailing list