Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Broken generation of locales
@ 2013-09-19  6:09 Thierry Bultel
  2013-09-19 15:04 ` Thomas Petazzoni
  0 siblings, 1 reply; 6+ messages in thread
From: Thierry Bultel @ 2013-09-19  6:09 UTC (permalink / raw)
  To: buildroot

Hi,

When setting BR2_GENERATE_LOCALE, for instance like that:
BR2_GENERATE_LOCALE="fr_FR en_US es_ES es_ES.ISO-8859-1 hu_HU"

nothing is generated.

next patch fixes that issue:

diff --git a/Makefile b/Makefile
index 7997e3b..98afd7e 100644
--- a/Makefile
+++ b/Makefile
@@ -543,8 +543,8 @@ ifneq ($(GENERATE_LOCALE),)
  target-generatelocales: host-localedef
         $(Q)mkdir -p $(TARGET_DIR)/usr/lib/locale/
         $(Q)for locale in $(GENERATE_LOCALE) ; do \
-               inputfile=`echo $${locale} | cut -f1 -d'.' -s` ; \
-               charmap=`echo $${locale} | cut -f2 -d'.' -s` ; \
+               inputfile=`echo $${locale} | cut -f1 -d'.'` ; \
+               charmap=`echo $${locale} | cut -s -f2 -d'.'` ; \
                 if test -z "$${charmap}" ; then \
                         charmap="UTF-8" ; \
                 fi ; \


Cheers
Thierry

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-09-19 20:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-19  6:09 [Buildroot] Broken generation of locales Thierry Bultel
2013-09-19 15:04 ` Thomas Petazzoni
2013-09-19 15:28   ` Thierry Bultel
2013-09-19 19:12     ` Arnout Vandecappelle
2013-09-19 19:30       ` Thomas Petazzoni
2013-09-19 20:32         ` Arnout Vandecappelle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox