Overwrite LC_CTYPE

Build failed with the following:

Traceback (most recent call last):
  File "./hwdb/parse_hwdb.py", line 195, in <module>
    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.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-02-13 13:13:26 -05:00
parent 6c1e2a67b2
commit f020f8b986
1 changed files with 1 additions and 0 deletions

View File

@ -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)