Force rsync to output decimals in C locale

https://github.com/teejee2008/timeshift/pull/904

Based on the changelog of rsync 3.2.4 - https://download.samba.org/pub/rsync/NEWS#3.2.4

    A long-standing bug was preventing rsync from figuring out the current locale's decimal point character, which made rsync always output numbers using the "C" locale. Since this is now fixed in 3.2.4, a script that parses rsync's decimal numbers (e.g. from the verbose footer) may want to setup the environment in a way that the output continues to be in the C locale. For instance, one of the following should work fine:

Fixes https://github.com/teejee2008/timeshift/issues/891
This commit is contained in:
retcashdev 2022-05-14 22:22:10 +02:00 committed by Clement Lefebvre
parent 3bebf4506e
commit de55e7916d

View File

@ -174,7 +174,7 @@ public class RsyncTask : AsyncTask{
private string build_script() {
var cmd = "";
var cmd = "export LC_ALL=C.UTF-8\n";
if (io_nice){
//cmd += "ionice -c2 -n7 ";