| 1 |
From 8918c50440de301887af8006f2dc72d64adf9f9c Mon Sep 17 00:00:00 2001
|
| 2 |
From: Remi Cardona <remi@gentoo.org>
|
| 3 |
Date: Sat, 18 Oct 2008 12:23:51 +0200
|
| 4 |
Subject: [PATCH] force LC_ALL=C when running awk
|
| 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 LC_ALL=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..723973a 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) | LC_ALL=C $(AWK) -f $(srcdir)/modeline2c.awk > $@
|
| 33 |
|
| 34 |
BUILT_SOURCES = xf86DefModeSet.c
|
| 35 |
|
| 36 |
--
|
| 37 |
1.6.0.2
|
| 38 |
|