mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 06:31:52 +00:00
86c0f046a8
On python3, Popen() universal_newlines=True converts the subprocess
stdout to unicode text using a codec based on user preferences. Given
LANG indicating ascii and utf-8 stdout from the subprocess, you'd get:
WARNING: kernel-doc '../scripts/kernel-doc -rst -enable-lineno
../drivers/media/dvb-core/demux.h' processing failed with: 'ascii' codec can't
decode byte 0xe2 in position 6368: ordinal not in range(128)
Fix this by dropping universal_newlines=True and replacing the implicit
LANG specific decode with an explicit utf-8 decode. This also gets rid
of the annoying conditional code for python 2 vs. 3.
Fixes:
|
||
---|---|---|
.. | ||
cdomain.py | ||
kernel_include.py | ||
kerneldoc.py | ||
kfigure.py | ||
load_config.py | ||
parse-headers.pl | ||
requirements.txt | ||
rstFlatTable.py |