diff options
author | Jani Nikula <[email protected]> | 2017-08-31 22:21:29 +0300 |
---|---|---|
committer | Jonathan Corbet <[email protected]> | 2017-08-31 13:36:28 -0600 |
commit | 86c0f046a8b0c23fca65f77333c233a06c25ef9a (patch) | |
tree | c855556f07686d52f232f89a778d7f41f0150103 /drivers/clocksource/timer-stm32.c | |
parent | a27bfcab5c1c3a0df61b68e85fc5e4cade83559f (diff) |
Documentation/sphinx: fix kernel-doc decode for non-utf-8 locale
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: ba3501859354 ("Documentation/sphinx: fix kernel-doc extension on python3")
Reference: http://mid.mail-archive.com/[email protected]
Reported-and-tested-by: Randy Dunlap <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
Diffstat (limited to 'drivers/clocksource/timer-stm32.c')
0 files changed, 0 insertions, 0 deletions