Closed Suika closed 4 years ago
Can you test if the commit I just submitted fixes the issue? I went ahead and just set LC_ALL=C
instead of en_US-UTF-8.
On second thought, it would be nice to only use LC_ALL=C
for the commands whose output is being parsed by the script and allow commands whose output is being displayed to the user to run with the user's locale. I'll look at doing that.
This commit should apply LC_ALL=C
only when needed:
https://github.com/automorphism88/snapraid-btrfs/commit/fb66a38fe622d7bb6e48d24b21d5d7fe4cf66c32
Checked against 55d877c, works.
LANG=en_US.UTF-8 LC_ALL=de_DE.UTF-8
The LC_ALL causes problems when the language is not set to en_US, due to the script looking at column tab names.
It would brobably be better to enforce
LC_ALL=en_US.UTF-8
to make sure that the script works in different environments.snapraid-btrfs cleanup