From 63e02be09f19ff7ebbebd4758619c529651c4be9 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 1 Feb 2006 13:25:16 +0000 Subject: [PATCH] - Setting LC_ALL instead of LC_MESSAGES in order to fix output of KOI8-R characters. (#134044) --- indent-2.2.9-lcall.patch | 12 ++++++++++++ indent.spec | 8 +++++++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 indent-2.2.9-lcall.patch diff --git a/indent-2.2.9-lcall.patch b/indent-2.2.9-lcall.patch new file mode 100644 index 0000000..5a68286 --- /dev/null +++ b/indent-2.2.9-lcall.patch @@ -0,0 +1,12 @@ +diff -burp indent-2.2.9/src/indent.c indent-2.2.9-lcall/src/indent.c +--- indent-2.2.9/src/indent.c 2006-02-01 14:20:25.000000000 +0100 ++++ indent-2.2.9-lcall/src/indent.c 2006-02-01 14:08:52.000000000 +0100 +@@ -3070,7 +3070,7 @@ int main ( + exit_values_ty exit_status; + + #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) +- setlocale (LC_MESSAGES, ""); ++ setlocale (LC_ALL, ""); + #endif + bindtextdomain (PACKAGE, LOCALEDIR); + textdomain (PACKAGE); diff --git a/indent.spec b/indent.spec index 0a46e63..661bcb9 100644 --- a/indent.spec +++ b/indent.spec @@ -1,7 +1,7 @@ Summary: A GNU program for formatting C code. Name: indent Version: 2.2.9 -Release: 10 +Release: 11 License: GPL Group: Applications/Text URL: http://www.gnu.org/software/indent/ @@ -10,6 +10,7 @@ Patch: indent-2.2.9-fix.patch Patch2: indent-2.2.9-gcc4.patch Patch3: indent-2.2.9-explicits.patch Patch4: indent-2.2.9-cdw.patch +Patch5: indent-2.2.9-lcall.patch Prereq: /sbin/install-info BuildRoot: %{_tmppath}/%{name}-%{version}-root @@ -28,6 +29,7 @@ you want a program to format your code. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build @@ -66,6 +68,10 @@ fi %changelog +* Wed Feb 1 2006 Petr Machata 2.2.9-11 +- Setting LC_ALL instead of LC_MESSAGES in order to fix output of + KOI8-R characters. (#134044) + * Wed Jan 27 2006 Petr Machata 2.2.9-10 - Changed the placement of closing `while' of `do {} while' command under a -cdw option. It's now cuddled up to the brace. (#67781)