File fix-decoding-non-ascii.diff of Package obs-service-tar_scm
diff --git a/TarSCM/cli.py b/TarSCM/cli.py
index 308e17a..2026f55 100644
--- a/TarSCM/cli.py
+++ b/TarSCM/cli.py
@@ -28,13 +28,13 @@ def check_locale(loc):
stderr=subprocess.STDOUT).communicate()
aloc = dict()
- for tloc in aloc_tmp.decode().split('\n'):
+ for tloc in aloc_tmp.split(b'\n'):
aloc[tloc] = 1
for tloc in loc:
logging.debug("Checking .... %s", tloc)
try:
- if aloc[tloc]:
+ if aloc[tloc.encode()]:
return tloc
except KeyError:
pass