[Buildroot] [PATCH] Fixed the generation of locales

Thierry Bultel thierry.bultel at wanadoo.fr
Fri Sep 20 08:35:46 UTC 2013


From: tbultel <tbultel at basystemes.fr>

Signed-off-by: Thierry Bultel <thierry.bultel at wanadoo.fr>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be> 

The -s option is only mandatory for the charmap,
else the filename is always empty and nothing
is generated.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 6ef0edc..71d94ad 100644
--- a/Makefile
+++ b/Makefile
@@ -554,7 +554,7 @@ 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` ; \
+		inputfile=`echo $${locale} | cut -f1 -d'.'` ; \
 		charmap=`echo $${locale} | cut -f2 -d'.' -s` ; \
 		if test -z "$${charmap}" ; then \
 			charmap="UTF-8" ; \
-- 
1.7.0.4



More information about the buildroot mailing list