LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] x86: fix build on non-C locales.
@ 2008-02-23 23:05 Priit Laes
2008-02-24 8:07 ` Ingo Molnar
2008-02-24 9:03 ` Sam Ravnborg
0 siblings, 2 replies; 5+ messages in thread
From: Priit Laes @ 2008-02-23 23:05 UTC (permalink / raw)
To: linux-kernel; +Cc: Thomas Gleixner, Ingo Molnar
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: Type: text/x-patch, Size: 868 bytes --]
x86: fix build on some non-C locales[1].
For some locales regex range [a-zA-Z] does not work as it is supposed to
so we have to specify LANG=C to make it work as intended.
[1] http://en.wikipedia.org/wiki/Estonian_alphabet
Signed-off-by: Priit Laes <plaes@plaes.org>
diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
index f385a4b..c58e7b9 100644
--- a/arch/x86/vdso/Makefile
+++ b/arch/x86/vdso/Makefile
@@ -50,7 +50,8 @@ obj-$(VDSO64-y) += vdso-syms.lds
sed-vdsosym := -e 's/^00*/0/' \
-e 's/^\([0-9a-fA-F]*\) . \(VDSO[a-zA-Z0-9_]*\)$$/\2 = 0x\1;/p'
quiet_cmd_vdsosym = VDSOSYM $@
- cmd_vdsosym = $(NM) $< | sed -n $(sed-vdsosym) | LC_ALL=C sort > $@
+ cmd_vdsosym = $(NM) $< | LC_ALL=C sed -n $(sed-vdsosym) \
+ | LC_ALL=C sort > $@
$(obj)/%-syms.lds: $(obj)/%.so.dbg FORCE
$(call if_changed,vdsosym)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: fix build on non-C locales.
2008-02-23 23:05 [PATCH] x86: fix build on non-C locales Priit Laes
@ 2008-02-24 8:07 ` Ingo Molnar
2008-02-24 9:03 ` Sam Ravnborg
1 sibling, 0 replies; 5+ messages in thread
From: Ingo Molnar @ 2008-02-24 8:07 UTC (permalink / raw)
To: Priit Laes; +Cc: linux-kernel, Thomas Gleixner
* Priit Laes <plaes@plaes.org> wrote:
> x86: fix build on some non-C locales[1].
>
> For some locales regex range [a-zA-Z] does not work as it is supposed
> to so we have to specify LANG=C to make it work as intended.
thanks, applied.
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: fix build on non-C locales.
2008-02-23 23:05 [PATCH] x86: fix build on non-C locales Priit Laes
2008-02-24 8:07 ` Ingo Molnar
@ 2008-02-24 9:03 ` Sam Ravnborg
2008-02-24 16:36 ` Priit Laes
1 sibling, 1 reply; 5+ messages in thread
From: Sam Ravnborg @ 2008-02-24 9:03 UTC (permalink / raw)
To: Priit Laes; +Cc: linux-kernel, Thomas Gleixner, Ingo Molnar
Hi Prit.
Could we just use [[:alnum:]] and drop the setting of LC_ALL?
Sam
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: fix build on non-C locales.
2008-02-24 9:03 ` Sam Ravnborg
@ 2008-02-24 16:36 ` Priit Laes
2008-02-24 16:49 ` Ingo Molnar
0 siblings, 1 reply; 5+ messages in thread
From: Priit Laes @ 2008-02-24 16:36 UTC (permalink / raw)
To: Sam Ravnborg; +Cc: linux-kernel, Thomas Gleixner, Ingo Molnar
Ühel kenal päeval, P, 2008-02-24 kell 10:03, kirjutas Sam Ravnborg:
> Hi Prit.
>
> Could we just use [[:alnum:]] and drop the setting of LC_ALL?
Yes, it works. Reverted the previous patch and did this:
diff --git a/arch/x86/vdso/Makefile b/arch/x86/vdso/Makefile
index f385a4b..b8bd0c4 100644
--- a/arch/x86/vdso/Makefile
+++ b/arch/x86/vdso/Makefile
@@ -48,7 +48,7 @@ obj-$(VDSO64-y) += vdso-syms.lds
# Match symbols in the DSO that look like VDSO*; produce a file of
constants.
#
sed-vdsosym := -e 's/^00*/0/' \
- -e 's/^\([0-9a-fA-F]*\) . \(VDSO[a-zA-Z0-9_]*\)$$/\2 = 0x\1;/p'
+ -e 's/^\([[:xdigit:]]*\) . \(VDSO[[:alnum:]_]*\)$$/\2 = 0x\1;/p'
quiet_cmd_vdsosym = VDSOSYM $@
cmd_vdsosym = $(NM) $< | sed -n $(sed-vdsosym) | LC_ALL=C sort >
$@
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] x86: fix build on non-C locales.
2008-02-24 16:36 ` Priit Laes
@ 2008-02-24 16:49 ` Ingo Molnar
0 siblings, 0 replies; 5+ messages in thread
From: Ingo Molnar @ 2008-02-24 16:49 UTC (permalink / raw)
To: Priit Laes; +Cc: Sam Ravnborg, linux-kernel, Thomas Gleixner
* Priit Laes <plaes@plaes.org> wrote:
> sed-vdsosym := -e 's/^00*/0/' \
> - -e 's/^\([0-9a-fA-F]*\) . \(VDSO[a-zA-Z0-9_]*\)$$/\2 = 0x\1;/p'
> + -e 's/^\([[:xdigit:]]*\) . \(VDSO[[:alnum:]_]*\)$$/\2 = 0x\1;/p'
thanks, i picked up this one instead of the first version.
Ingo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-02-24 16:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-23 23:05 [PATCH] x86: fix build on non-C locales Priit Laes
2008-02-24 8:07 ` Ingo Molnar
2008-02-24 9:03 ` Sam Ravnborg
2008-02-24 16:36 ` Priit Laes
2008-02-24 16:49 ` Ingo Molnar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).