utils: run() handle unicode decode failure #132
Draft
+38
−9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Expand the run() wrapper to handle logging and unicode decode failures in general.
The original problem reports udev decode failures involving a NTFS partition with a label similar to 'NTFS réservée'. I am unable to construct that with NTFS, but a ext4 version was instructional. The subsequent dumpe2fs has invalid output.
Pyudev seems to handle this all well, I was unable to coax decode failures from it.
I think the robustness check is interesting for now, and if we get more info on reproduction steps, further work can be considered.
LP: #2011344