-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Decode popen output using the system locale if UTF-8 decoding fails. (#…
…380) * add decode_output func to decode popen output fixes #309 by trying to decode popen output with utf8 first and on error tries other encodings provided by the systems preferences. * simplified decode_output function * fix linting issues * fix double hard coded utf8 * change utf8 to utf-8 * add tests for decode_output * fix linting issues * simplify nested try...except block and fix nested exception msg Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com> * fix tests for simplified deode_output Co-authored-by: Claudio Jolowicz <cjolowicz@gmail.com>
- Loading branch information
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters