From patchwork Thu Sep 19 06:09:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Bultel X-Patchwork-Id: 275868 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ozlabs.org (Postfix) with ESMTP id C44B02C00FE for ; Thu, 19 Sep 2013 16:09:21 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id C92FD8AFD3; Thu, 19 Sep 2013 06:09:20 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i2g8h6bSqvTP; Thu, 19 Sep 2013 06:09:19 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by fraxinus.osuosl.org (Postfix) with ESMTP id 2F3688AF7B; Thu, 19 Sep 2013 06:09:19 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 0D4CD1BF9BC for ; Thu, 19 Sep 2013 06:09:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id EFAD28C95A for ; Thu, 19 Sep 2013 06:09:17 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PNAd4J+L+g1l for ; Thu, 19 Sep 2013 06:09:15 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from smtp.smtpout.orange.fr (smtp08.smtpout.orange.fr [80.12.242.130]) by whitealder.osuosl.org (Postfix) with ESMTP id 9AA8C8C142 for ; Thu, 19 Sep 2013 06:09:14 +0000 (UTC) Received: from [192.168.0.6] ([109.218.53.205]) by mwinf5d67 with ME id Su9C1m0064Rf9cl03u9CeM; Thu, 19 Sep 2013 08:09:13 +0200 Message-ID: <523A9508.7040403@wanadoo.fr> Date: Thu, 19 Sep 2013 08:09:12 +0200 From: Thierry Bultel User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5 MIME-Version: 1.0 To: "buildroot@busybox.net" Subject: [Buildroot] Broken generation of locales X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net 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: Cheers Thierry Acked-by: Arnout Vandecappelle (Essensium/Mind) Acked-by: Arnout Vandecappelle (Essensium/Mind) 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 ; \