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>
  File "/usr/bin/glib-mkenums", line 406, in process_file
    line = curfile.readline()
  File "/usr/lib64/python3.6/encodings/", 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 <>
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