From f020f8b98602719ace266573b4c9df7412890937 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Feb 13 2017 18:18:08 +0000 Subject: Overwrite LC_CTYPE Build failed with the following: Traceback (most recent call last): File "./hwdb/parse_hwdb.py", line 195, in groups = parse(fname) File "./hwdb/parse_hwdb.py", line 136, in parse parsed = grammar.parseFile(fname) File "/usr/lib/python3.6/site-packages/pyparsing.py", line 2142, in parseFile file_contents = f.read() File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 15765: ordinal not in range(128) In mock, LC_CTYPE is unset, so python3 defaults to ascii, uselessly. I think "ID_VENDOR_FROM_DATABASE=VENGIT Korlátolt Felelősségű Társaság" is the issue here. --- diff --git a/systemd.spec b/systemd.spec index e6d3563..2bcd15d 100644 --- a/systemd.spec +++ b/systemd.spec @@ -425,6 +425,7 @@ install -Dm0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE11} %find_lang %{name} %check +export LC_CTYPE=en_US.utf8 make check %{?_smp_mflags} VERBOSE=1 || { cat test-suite.log; exit 1; } # Check for botched translations (https://bugzilla.redhat.com/show_bug.cgi?id=1226566)