From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HK_RANDOM_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 26528 invoked from network); 16 Dec 2023 19:43:53 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 16 Dec 2023 19:43:53 -0000 Received: (qmail 5996 invoked by uid 550); 16 Dec 2023 19:43:15 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 5945 invoked from network); 16 Dec 2023 19:43:14 -0000 From: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1702755813; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UCQg3oPnoy0+4XFG1Rvzzkftnx6+ZnmY8AobdfwRieg=; b=yosS9k3XPM1FNhSYnB/IkD9+T6rmbH/rLdGwtaUJ0RhlxpoJPjzl5Q4Ex7654MUVrmZMUx 7OZTRjGVdSQPLV7GV0/ybVLXnRwF/LZgQk/vXVyXqKOvfTErP5xZtv2qwy1g4xgod+qv4L IciJ4LiJTZQtTfGY67i3mfrL139waI8= To: musl@lists.openwall.com Cc: =?UTF-8?q?Pablo=20Correa=20G=C3=B3mez?= Date: Sat, 16 Dec 2023 20:36:43 +0100 Message-ID: <20231216194325.23580-2-pabloyoyoista@postmarketos.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231216194325.23580-1-pabloyoyoista@postmarketos.org> References: <20231216194325.23580-1-pabloyoyoista@postmarketos.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [musl] [PATCH 1/2] langinfo: add support for LC_NUMERIC translations From: Pablo Correa Gómez The lack of supports seem to come from the fact that there are no users to it. But we are going to introduce a new user in the next commit, so enable it. --- src/locale/langinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/langinfo.c b/src/locale/langinfo.c index 14773093..8acc7fd6 100644 --- a/src/locale/langinfo.c +++ b/src/locale/langinfo.c @@ -60,7 +60,7 @@ char *__nl_langinfo_l(nl_item item, locale_t loc) } for (; idx; idx--, str++) for (; *str; str++); - if (cat != LC_NUMERIC && *str) str = LCTRANS(str, cat, loc); + if (*str) str = LCTRANS(str, cat, loc); return (char *)str; } -- 2.43.0