From: Todd C. Miller <Todd.Miller@courtesan.com>
Date: Sat, 23 Aug 2008 23:09:13 +0000 (+0000)
Subject: Set locale to "C" to avoid interpretation issues with character ranges
X-Git-Tag: SUDO_1_7_0~91
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a5245c23581aee1a7da6122c4bb4147326e7baed;p=sudo

Set locale to "C" to avoid interpretation issues with character ranges
in sudoers.  May want to make the locale a sudoers option in the future.
---

diff --git a/sudo.c b/sudo.c
index 6698e189d..e43f8bdab 100644
--- 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;