about summary refs log tree commit diff
path: root/lr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lr.c')
-rw-r--r--lr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lr.c b/lr.c
index fbf0f8a..3277bed 100644
--- a/lr.c
+++ b/lr.c
@@ -45,6 +45,7 @@
 #include <fnmatch.h>
 #include <grp.h>
 #include <limits.h>
+#include <locale.h>
 #include <paths.h>
 #include <pwd.h>
 #include <regex.h>
@@ -1936,6 +1937,8 @@ main(int argc, char *argv[])
 	now = time(0);
 	status = 0;
 
+	setlocale(LC_ALL, "");
+
 	while ((c = getopt(argc, argv, "01AC:DFGHLQST:Udf:lho:st:x")) != -1)
 		switch(c) {
 		case '0': format = zero_format; input_delim = 0; Qflag++; break;