Date: Mon, 24 Sep 2018 04:11:42 +0000 From: bugzilla-noreply@freebsd.org To: python@FreeBSD.org Subject: [Bug 231650] lang/python36: Unreasonable error: UnicodeDecodeError: 'ascii' codec can't decode byte Message-ID: <bug-231650-21822-3RhO2ujIJa@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-231650-21822@https.bugs.freebsd.org/bugzilla/> References: <bug-231650-21822@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D231650 Kubilay Kocak <koobs@FreeBSD.org> 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 <koobs@FreeBSD.org> --- 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.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-231650-21822-3RhO2ujIJa>