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