Project

General

Profile

Bug #3039

check-source fails with python 3.6 if locale is not set to en_US.UTF-8 or similar

Added by Christian Blau 5 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Category:
build system
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Running the check-source target fails, due to failure of running the following command

/usr/bin/python3 check-source.py -S /foo/gromacs -B /foo/gromacs-build-release -l /foo/gromacs-build-release/docs/doxygen/check-source.log --ignore /foo/gromacs/docs/doxygen/suppressions.txt --ignore-cycles /foo/gromacs/docs/doxygen/cycle-suppressions.txt

with

Traceback (most recent call last):
File "check-source.py", line 437, in <module>
main()
File "check-source.py", line 413, in main
tree.scan_files(keep_contents=True)
File "gmxtree.py", line 829, in scan_files
fileobj.scan_contents(self, keep_contents, detect_defines)
File "gmxtree.py", line 224, in scan_contents
contents = scanfile.read()
File "/usr/lib/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 2755: ordinal not in range(128)

Associated revisions

Revision f1603aec (diff)
Added by Test User 5 months ago

Fix failing check-source target on python3.6

When the locale is not set to UTF-8 encoding, check-source fails.

This fixes #3039

Change-Id: I79b222ae9f839123f3e7411c5d73249462aafab0

History

#1 Updated by Test User 5 months ago

  • Status changed from New to Resolved

#2 Updated by Mark Abraham 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF