summarylogtreecommitdiffstats
path: root/indent-2.2.11-LC_ALL.patch
diff options
context:
space:
mode:
Diffstat (limited to 'indent-2.2.11-LC_ALL.patch')
-rw-r--r--indent-2.2.11-LC_ALL.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/indent-2.2.11-LC_ALL.patch b/indent-2.2.11-LC_ALL.patch
new file mode 100644
index 000000000000..0ffe56d3c921
--- /dev/null
+++ b/indent-2.2.11-LC_ALL.patch
@@ -0,0 +1,17 @@
+From: Santiago Vila <sanvila@debian.org>
+Subject: setlocale using LC_ALL, not LC_MESSAGES
+Bug-Debian: http://bugs.debian.org/205692
+
+--- a/src/indent.c
++++ b/src/indent.c
+@@ -1008,8 +1008,8 @@
+ BOOLEAN using_stdin = false;
+ exit_values_ty exit_status;
+
+-#if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) && defined (HAVE_LCCTYPES)
+- setlocale(LC_MESSAGES, "");
++#if defined (HAVE_SETLOCALE)
++ setlocale(LC_ALL, "");
+ #endif
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);