Skip to content

Commit

Permalink
Force rsync to output decimals in C locale
Browse files Browse the repository at this point in the history
teejee2008/timeshift#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 teejee2008/timeshift#891
  • Loading branch information
ratcashdev authored and clefebvre committed May 24, 2022
1 parent 3bebf45 commit de55e79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utility/RsyncTask.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 ";
Expand Down

0 comments on commit de55e79

Please sign in to comment.