]> git.ipfire.org Git - thirdparty/rsync.git/commitdiff
Fix the ability to read the user's numeric locale.
authorWayne Davison <wayne@opencoder.net>
Sat, 30 Oct 2021 03:06:06 +0000 (20:06 -0700)
committerWayne Davison <wayne@opencoder.net>
Sat, 30 Oct 2021 03:06:06 +0000 (20:06 -0700)
main.c

diff --git a/main.c b/main.c
index 361dbc4e5fd909372e0ec5c006e2c366f98a282d..013a05553c9f77a1b39b0140fbede56707452f92 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1761,6 +1761,7 @@ int main(int argc,char *argv[])
 
 #if defined CONFIG_LOCALE && defined HAVE_SETLOCALE
        setlocale(LC_CTYPE, "");
+       setlocale(LC_NUMERIC, "");
 #endif
 
        if (!parse_arguments(&argc, (const char ***) &argv)) {