/[gentoo-x86]/x11-base/xorg-server/files/1.5.2-force-LANG-C-when-running-awk-due-to-unintended-erro.patch
Gentoo

Contents of /x11-base/xorg-server/files/1.5.2-force-LANG-C-when-running-awk-due-to-unintended-erro.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Oct 18 10:34:56 2008 UTC (6 years, 1 month ago) by remi
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
x11-base/xorg-server: another patch to fix bug #237119
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-gentoo-r1 i686, RepoMan options: --force)

1 From b22ab25991aba5ad71f26a68ea3b9366ac63ef4a Mon Sep 17 00:00:00 2001
2 From: Remi Cardona <remi@gentoo.org>
3 Date: Sat, 18 Oct 2008 01:01:23 +0200
4 Subject: [PATCH] force LANG=C when running awk due to unintended errors with some locales
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=utf-8
7 Content-Transfer-Encoding: 8bit
8
9 This bug was reported by a user trying to build the server with a
10 Turkish locale (tr_TR). The problem is that the Turkish alphabet is
11 latin-based, but not entirely similar. The bug comes from vesamodes
12 which has "Interlaced", which is then converted to lowercase by
13 modelines2c.awk. Execept that with a Turkish locale
14 tolower("Interlaced") is not "interlaced" but "─▒nterlaced", which the
15 rest of the script fails to understand.
16
17 This patch forces LANG=C when running the awk script to always get the
18 intended latin en_US alphabet.
19 ---
20 hw/xfree86/common/Makefile.am | 2 +-
21 1 files changed, 1 insertions(+), 1 deletions(-)
22
23 diff --git a/hw/xfree86/common/Makefile.am b/hw/xfree86/common/Makefile.am
24 index 0f44075..7f422c2 100644
25 --- a/hw/xfree86/common/Makefile.am
26 +++ b/hw/xfree86/common/Makefile.am
27 @@ -24,7 +24,7 @@ BUSSOURCES = xf86isaBus.c xf86pciBus.c xf86fbBus.c xf86noBus.c $(SBUS_SOURCES)
28 MODEDEFSOURCES = $(srcdir)/vesamodes $(srcdir)/extramodes
29
30 xf86DefModeSet.c: $(srcdir)/modeline2c.awk $(MODEDEFSOURCES)
31 - cat $(MODEDEFSOURCES) | $(AWK) -f $(srcdir)/modeline2c.awk > $@
32 + cat $(MODEDEFSOURCES) | LANG=C $(AWK) -f $(srcdir)/modeline2c.awk > $@
33
34 BUILT_SOURCES = xf86DefModeSet.c
35
36 --
37 1.6.0.2

  ViewVC Help
Powered by ViewVC 1.1.20