[PATCH] force LC_ALL=C when running awk
Remi Cardona
remi at gentoo.org
Sat Oct 18 03:23:51 PDT 2008
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
--------------050206000904090004040500--
More information about the xorg
mailing list