Commit 33843cc1 authored by Daniel P. Berrange's avatar Daniel P. Berrange

Don't set LC_ALL=C during build as that breaks python apps

Setting LC_ALL=C breaks python apps doing I/O on UTF-8 source
files. In particular this broke glib-mkenums

    Traceback (most recent call last):
  File "/usr/bin/glib-mkenums", line 669, in <module>
    process_file(fname)
  File "/usr/bin/glib-mkenums", line 406, in process_file
    line = curfile.readline()
  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 0xc3 in position 115: ordinal not in range(128)
Signed-off-by: 's avatarDaniel P. Berrange <berrange@redhat.com>
parent 2692ed02
......@@ -148,8 +148,8 @@ news-check-lines-spec ?= 1,10
news-check-regexp ?= '^\*.* $(VERSION_REGEXP) \($(today)\)'
# Prevent programs like 'sort' from considering distinct strings to be equal.
# Doing it here saves us from having to set LC_ALL elsewhere in this file.
export LC_ALL = C
# Doing it here saves us from having to set LC_COLLATE elsewhere in this file.
export LC_COLLATE = C
## --------------- ##
## Sanity checks. ##
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment