From owner-freebsd-python@freebsd.org Mon Sep 24 04:11:44 2018 Return-Path: Delivered-To: freebsd-python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C308B10A3DA6 for ; Mon, 24 Sep 2018 04:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 603798EEB3 for ; Mon, 24 Sep 2018 04:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2388810A3DA4; Mon, 24 Sep 2018 04:11:43 +0000 (UTC) Delivered-To: python@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 11D7610A3DA3 for ; Mon, 24 Sep 2018 04:11:43 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A7CB58EEB0 for ; Mon, 24 Sep 2018 04:11:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0107A203F3 for ; Mon, 24 Sep 2018 04:11:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w8O4Bf1o063165 for ; Mon, 24 Sep 2018 04:11:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w8O4BftY063164 for python@FreeBSD.org; Mon, 24 Sep 2018 04:11:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 231650] lang/python36: Unreasonable error: UnicodeDecodeError: 'ascii' codec can't decode byte Date: Mon, 24 Sep 2018 04:11:42 +0000 X-Bugzilla-Reason: CC AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None 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: koobs@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Not A Bug X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: koobs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: assigned_to bug_status cc resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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.27 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2018 04:11:44 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231650 Kubilay Kocak changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|python@FreeBSD.org |koobs@FreeBSD.org Status|New |Closed CC| |python@FreeBSD.org Resolution|--- |Not A Bug --- Comment #1 from Kubilay Kocak --- This is a common class of bug not specific to FreeBSD. Without an encoding specified for the open() method, it relies on the defau= lt system encoding(non-deterministic), which may not be UTF8 (in this case asc= ii) [1]. The solution is to specify the encoding to be used, so as not to be platform/system dependent. Examples:=20 * https://bugs.launchpad.net/pbr/+bug/1704472 * https://github.com/mozilla/unicode-slugify/issues/16 * https://bitbucket.org/genomeinformatics/simlord/issues/1/error-when-install= ing-simlord-ascii-codec * https://github.com/morepath/morepath/issues/286 * https://github.com/chaoss/grimoirelab-perceval/issues/32 * https://github.com/rbarrois/python-semanticversion/issues/13 * Many others. Google: "setup.py" "codec can't decode byte" site:.github.c= om [1] https://docs.python.org/3/library/functions.html#open --=20 You are receiving this mail because: You are on the CC list for the bug. You are the assignee for the bug.=