2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-09-02 15:25:58 +00:00

Fix typo; we want setlocale(LC_ALL, "") since we are setting the

locale for the first time.
This commit is contained in:
Todd C. Miller
2013-12-28 07:59:45 -07:00
parent 91db1efe91
commit a6e1766dd6
3 changed files with 3 additions and 3 deletions

View File

@@ -242,7 +242,7 @@ main(int argc, char *argv[])
#endif #endif
initprogname(argc > 0 ? argv[0] : "sudoreplay"); initprogname(argc > 0 ? argv[0] : "sudoreplay");
setlocale(LC_ALL, NULL); setlocale(LC_ALL, "");
decimal = localeconv()->decimal_point; decimal = localeconv()->decimal_point;
bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have sudoreplay domain */ bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have sudoreplay domain */
textdomain("sudoers"); textdomain("sudoers");

View File

@@ -134,7 +134,7 @@ main(int argc, char *argv[])
initprogname(argc > 0 ? argv[0] : "testsudoers"); 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 */ bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have own domain */
textdomain("sudoers"); textdomain("sudoers");

View File

@@ -159,7 +159,7 @@ main(int argc, char *argv[])
#endif #endif
initprogname(argc > 0 ? argv[0] : "visudo"); 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 */ bindtextdomain("sudoers", LOCALEDIR); /* XXX - should have visudo domain */
textdomain("sudoers"); textdomain("sudoers");