]> granicus.if.org Git - sudo/commitdiff
Set locale to "C" to avoid interpretation issues with character ranges
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Aug 2008 23:09:13 +0000 (23:09 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 23 Aug 2008 23:09:13 +0000 (23:09 +0000)
in sudoers.  May want to make the locale a sudoers option in the future.

sudo.c

diff --git a/sudo.c b/sudo.c
index 6698e189d1ad0e03c08a0cbb3392f070466479e6..e43f8bdab8018e550e329b06b86cad8bd87f00ec 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -178,7 +178,7 @@ main(argc, argv, envp)
     struct sudo_nss *nss;
 
 #ifdef HAVE_SETLOCALE
-    setlocale(LC_ALL, "");
+    setlocale(LC_ALL, "C");
 #endif
 
     Argv = argv;