From 011481b120c70acb4a4a6649d589eebd8b11c96bcf1ae7779b7d7267ab66448e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Wed, 27 May 2020 13:10:38 +0000 Subject: [PATCH] Accepting request 809533 from home:apritschet:branches:openSUSE:Factory Set encodings to UTF-8 to avoid UnicodeDecodeError (otherwise building for SLE12 will fail) OBS-URL: https://build.opensuse.org/request/show/809533 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-responses?expand=0&rev=25 --- python-responses.changes | 5 +++++ python-responses.spec | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/python-responses.changes b/python-responses.changes index c7edebb..faf9a21 100644 --- a/python-responses.changes +++ b/python-responses.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 27 12:22:21 UTC 2020 - Andreas Hasenkopf + +- Set encodings to UTF-8 to avoid UnicodeDecodeError + ------------------------------------------------------------------- Thu Mar 19 08:22:52 UTC 2020 - pgajdos@suse.com diff --git a/python-responses.spec b/python-responses.spec index 9dcd2dc..d0880df 100644 --- a/python-responses.spec +++ b/python-responses.spec @@ -1,7 +1,7 @@ # # spec file for package python-responses # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -54,9 +54,13 @@ about the library. %setup -q -n responses-%{version} %build +export LANG="en_US.UTF8" +export PYTHONIOENCODING="utf_8" %python_build %install +export LANG="en_US.UTF8" +export PYTHONIOENCODING="utf_8" %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib}