cppcheck
cppcheck copied to clipboard
fixed #11372 - potential `UnicodeDecodeError` with `subprocess.Popen()`
Passing universal_newlines=True to subprocess.Popen() will implicitly perform decode(). But this might encounter errors which need to be ignored. Unfortunately the required options encoding and errors are not available until Python 3.6 so we still need to use decode() instead.
Still a draft since I only have tested the daca client script so far.
I have a different approach which tries to mitigate the errors instead of ignoring them. Needs some more testing though.