From owner-freebsd-python@freebsd.org Sat Aug 22 15:07:19 2020 Return-Path: Delivered-To: freebsd-python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DDA473BE80A for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BYhZH5ZfXz4l88 for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id BF7593BE809; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) Delivered-To: python@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id BE2F13BE808 for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BYhZH4bmqz4l1c for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7E788184BD for ; Sat, 22 Aug 2020 15:07:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07MF7Jai059058 for ; Sat, 22 Aug 2020 15:07:19 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07MF7Jea059056 for python@FreeBSD.org; Sat, 22 Aug 2020 15:07:19 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: maintainer-approval requested: [Bug 248834] devel/py-appdirs: Configure phase fails with UnicodeDecodeError in 'ascii' codec : [Attachment 217444] devel/py-appdirs: Backport explicit encoding patch Date: Sat, 22 Aug 2020 15:07:19 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: python@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Aug 2020 15:07:19 -0000 John W. O'Brien has asked freebsd-python (Nobody) for maintainer-approval: Bug 248834: devel/py-appdirs: Configure phase fails with UnicodeDecodeError= in 'ascii' codec https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248834 Attachment 217444: devel/py-appdirs: Backport explicit encoding patch https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D217444&action=3Dedit --- Description --- Symptom =3D=3D=3D=3D=3D=3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D =3D=3D=3D> Configuring for py36-appdirs-1.4.4 Traceback (most recent call last): File "", line 1, in File "setup.py", line 25, in for line in read("appdirs.py").splitlines(): File "setup.py", line 19, in read out =3D "\n" + inf.read().replace("\r\n", "\n") 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 0xc8 in position 129: ordinal not in range(128) *** Error code 1 Stop. make: stopped in /usr/ports/devel/py-appdirs Analysis =3D=3D=3D=3D=3D=3D=3D=3D The appdirs.py file is UTF-8 encoded, and under certain circumstances, the built-in `open` function will guess the wrong encoding. QA =3D=3D portlint: OK poudriere: OK -- testport on 12.1R amd64 w/py27, py35, py36, py37 (default), and py38 Note: The attached patch does not increment PORTREVISION because if the bug= is triggered, no package is produced.