Your message dated Mon, 11 Sep 2017 03:08:17 +0000
with message-id <e1drf57-00021e...@fasolo.debian.org>
and subject line Bug#874688: fixed in libpsl 0.18.0-4
has caused the Debian Bug report #874688,
regarding libpsl FTBFS: UnicodeDecodeError: 'ascii' codec can't decode byte 
0xc3 in position 8046: ordinal not in range(128)
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
874688: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=874688
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: libpsl
Version: 0.18.0-3
Severity: serious
Tags: patch

Hi Daniel,

your -3 upload switching to python3 made libpsl FTBFS on all
architectures. Since building libpsl is important to me, I came up with
the attached patch to make it build again. It bypasses any locale
settings and forces the input file to be opened in utf-8 mode by passing
the encoding keyword argument to the relevant open function. Hope it
helps.

Helmut
Index: libpsl-0.18.0/src/psl-make-dafsa
===================================================================
--- libpsl-0.18.0.orig/src/psl-make-dafsa
+++ libpsl-0.18.0/src/psl-make-dafsa
@@ -685,7 +685,7 @@
     psl_nexceptions = 0
     psl_nwildcards = 0
 
-    with open(sys.argv[-2], 'r') as infile, open(sys.argv[-1], 'wb') as outfile:
+    with open(sys.argv[-2], 'r', encoding="utf-8") as infile, open(sys.argv[-1], 'wb') as outfile:
       outfile.write(converter(parser(infile, utf_mode, codecs), utf_mode, codecs))
 
   return 0

--- End Message ---
--- Begin Message ---
Source: libpsl
Source-Version: 0.18.0-4

We believe that the bug you reported is fixed in the latest version of
libpsl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 874...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Daniel Kahn Gillmor <d...@fifthhorseman.net> (supplier of updated libpsl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 10 Sep 2017 22:42:57 -0400
Source: libpsl
Binary: libpsl-dev libpsl5 psl psl-make-dafsa
Architecture: source
Version: 0.18.0-4
Distribution: unstable
Urgency: medium
Maintainer: Tim Rühsen <tim.rueh...@gmx.de>
Changed-By: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Description:
 libpsl-dev - Library for Public Suffix List (development headers)
 libpsl5    - Library for Public Suffix List (shared libraries)
 psl        - Explore the Public Suffix List
 psl-make-dafsa - Create a binary DAFSA from a Public Suffix List
Closes: 874688
Changes:
 libpsl (0.18.0-4) unstable; urgency=medium
 .
   * fix py3 transition on non-UTF-8 systems (Closes: #874688)
     Thanks, Helmut Grohne!
Checksums-Sha1:
 7f471abc7b3fb6e9656168ee5d9b736f78cf3840 2190 libpsl_0.18.0-4.dsc
 11e993108587984eb8cc2636b1c3b26480867c0e 9240 libpsl_0.18.0-4.debian.tar.xz
 6795ef1ecaa9366f72fada274372ff5c53cdcf15 8121 libpsl_0.18.0-4_amd64.buildinfo
Checksums-Sha256:
 b62d3ad4472795fa8a81fcdc938aae7e8fa542835873c730463b280931abae75 2190 
libpsl_0.18.0-4.dsc
 d46f48e6b9ed75702b13d1e8d9c39c0898f8f76c956e430a71ee4fbecff09138 9240 
libpsl_0.18.0-4.debian.tar.xz
 c20d52e4877fadb35d6fda7983d42d60ed49c0bd7e856a22fb1688658ba8b1ed 8121 
libpsl_0.18.0-4_amd64.buildinfo
Files:
 e1b7a5825ff930f65be2a345f5772650 2190 libs optional libpsl_0.18.0-4.dsc
 691e2f59992a9faed6787dbcba589d95 9240 libs optional 
libpsl_0.18.0-4.debian.tar.xz
 10ebff189387238f145af763cc2c8174 8121 libs optional 
libpsl_0.18.0-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEOCdgUepHf6PklTkyFJitxsGSMjcFAlm1+IkACgkQFJitxsGS
MjfvZQ//U4bhw5RlmJDMyqzSVuRRa/rC8hm9Cl72YUoGVOhfvLPU6crhWfpeS05A
ox2Glk7ni93bRP0HFDHAZYx7x8DGWuRm8QK0Y2dOcro49yMPXQNzYRXVn2yRMV0i
GUN/PF0c3elHp43i5qBr4/1gJWtfHkFss9AJ8PV64HAksZlEV0lnUUH2Hqdpz3QI
USFt8afViqQDZbYEE7nBylGi0CgO2LCXpt3GeseacGbSLDduusJXRUUyFtfmOP83
xOGuJZ11sXzfhiImGYuaeZwYf2WTELtYVMhexm9RkWQmXHownwrjmUwNw9Ou7Q8y
bpUNcoQ2NQZPhQLpfSCmKg6jrDy0Bq2VYkj4znXTQsyuGjrR3D9/dUW2fvgi517a
kRHCs1hn6oF+uln+TsRRMSwDKH7+02lUKdytv6IGO6gqxFrn3xrV8Ye7KCN8tEaY
cBGv/PORq7Yb7+AnrEILsgsVLzBehzB9Z5zRehwsevDIAXn10RK9TuO/uXADzCup
WjxTNIIAoP0hYuVm0Iwi/BwtYt5APWePw9yRuR8rbXoBYA7LZ0M2bWV57z9FQlOu
TJ1vovgTI95Bz9VvzTIMiT9JexOQsnwThjJUVSqD1GMNGHUI7R1p/7NW5uMjCD6s
amxzJn95Eh/Z9qEzP++gK+isNaLLFUEO4Hs5LzpH3vy4+pWaO0o=
=ljpm
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to