summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
diff options
context:
space:
mode:
authorrnhmjoj <rnhmjoj@inventati.org>2023-02-02 13:26:18 +0100
committerrnhmjoj <rnhmjoj@inventati.org>2023-02-07 08:47:14 +0100
commit067d688b1687b731007ddfe58a399f466492efe4 (patch)
tree6991d1b790fb28d0f312ad406b85decdc80480c0 /pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch
parentf2929eb949dadce3c195fc67f742c0f56710976c (diff)
nixos/test-driver: handle decoding errors in Machine.execute
The output of a command is not guaranteed to be valid UTF-8, so the decoding can fail raising UnicodeDecodeError. If this happens during a `succeeds` the check will be erroneously marked failed. This changes the error handling to the "replace" mode, where invalid codepoints are replaced with � (REPLACEMENT CHARACTER U+FFFD) and the decoding can go on.
Diffstat (limited to 'pkgs/development/python-modules/termplotlib/gnuplot-subprocess.patch')
0 files changed, 0 insertions, 0 deletions