]> granicus.if.org Git - sudo/commitdiff
Fix typo; we want setlocale(LC_ALL, "") since we are setting the
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 28 Dec 2013 14:59:45 +0000 (07:59 -0700)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 28 Dec 2013 14:59:45 +0000 (07:59 -0700)
locale for the first time.

plugins/sudoers/sudoreplay.c
plugins/sudoers/testsudoers.c
plugins/sudoers/visudo.c

index e7e047c4667ba06ffb9830ca3efcb7da72fc0d95..c867a120bfc699582f7227fd1a2edcaae1ff918b 100644 (file)
@@ -242,7 +242,7 @@ main(int argc, char *argv[])
 #endif
 
     initprogname(argc > 0 ? argv[0] : "sudoreplay");
-    setlocale(LC_ALL, NULL);
+    setlocale(LC_ALL, "");
     decimal = localeconv()->decimal_point;
     bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have sudoreplay domain */
     textdomain("sudoers");
index 7105b093a3e466d1d99ee5fed863aba73e971e0a..5a46f42a6b0fd1edd0ebffe2047270a0d0fdd5fe 100644 (file)
@@ -134,7 +134,7 @@ main(int argc, char *argv[])
 
     initprogname(argc > 0 ? argv[0] : "testsudoers");
 
-    sudoers_initlocale(setlocale(LC_ALL, NULL), def_sudoers_locale);
+    sudoers_initlocale(setlocale(LC_ALL, ""), def_sudoers_locale);
     bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have own domain */
     textdomain("sudoers");
 
index f24da1de10833bb23e7e1fca697e545c11422359..841322bf39ce7e92045c78ca859f71ec14e84131 100644 (file)
@@ -159,7 +159,7 @@ main(int argc, char *argv[])
 #endif
 
     initprogname(argc > 0 ? argv[0] : "visudo");
-    sudoers_initlocale(setlocale(LC_ALL, NULL), def_sudoers_locale);
+    sudoers_initlocale(setlocale(LC_ALL, ""), def_sudoers_locale);
     bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have visudo domain */
     textdomain("sudoers");