Fix snapraid output encoding handling (#31)
This commit is contained in:
1 parent
5ccbda8e32
commit
93572fb734
2 files changed
+8
-1
No files matched your search
@@ -27,6 +27,9 @@ It supports Windows, Linux and macOS and runs on both python2 and python3.
|
|||||||
* Can run `scrub` after `sync`
|
* Can run `scrub` after `sync`
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
### Unreleased
|
||||||
|
* Fix snapraid output encoding handling (by hyyz17200, PR-31)
|
||||||
|
|
||||||
### v0.4 (17 Aug 2019)
|
### v0.4 (17 Aug 2019)
|
||||||
* Add compatibility with python3 (by reed-jones)
|
* Add compatibility with python3 (by reed-jones)
|
||||||
* Add support for running `snapraid touch` (by ShoGinn, PR-11)
|
* Add support for running `snapraid touch` (by ShoGinn, PR-11)
|
||||||
|
|||||||
+5
-1
@@ -57,7 +57,11 @@ def snapraid_command(command, args={}, *, allow_statuscodes=[]):
|
|||||||
[config["snapraid"]["executable"], command] + arguments,
|
[config["snapraid"]["executable"], command] + arguments,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE,
|
stderr=subprocess.PIPE,
|
||||||
universal_newlines=True
|
universal_newlines=True,
|
||||||
|
# Snapraid always outputs utf-8 on windows. On linux, utf-8
|
||||||
|
# also seems a sensible assumption.
|
||||||
|
encoding="utf-8",
|
||||||
|
errors="replace"
|
||||||
)
|
)
|
||||||
out = []
|
out = []
|
||||||
threads = [
|
threads = [
|
||||||
|
|||||||
Reference in new issue
Block a user