mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "Pablo Correa Gómez" <pabloyoyoista@postmarketos.org>
To: musl@lists.openwall.com
Cc: "Pablo Correa Gómez" <ablocorrea@hotmail.com>
Subject: [musl] [PATCH 1/2] langinfo: add support for LC_NUMERIC translations
Date: Sat, 16 Dec 2023 20:36:43 +0100	[thread overview]
Message-ID: <20231216194325.23580-2-pabloyoyoista@postmarketos.org> (raw)
In-Reply-To: <20231216194325.23580-1-pabloyoyoista@postmarketos.org>

From: Pablo Correa Gómez <ablocorrea@hotmail.com>

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


  reply	other threads:[~2023-12-16 19:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-16 19:36 [musl] [PATCH 0/2] Support printing localized RADIXCHAR Pablo Correa Gómez
2023-12-16 19:36 ` Pablo Correa Gómez [this message]
2023-12-16 19:36 ` [musl] [PATCH 2/2] printf: translate RADIXCHAR for floating-point numbers Pablo Correa Gómez
2023-12-16 23:10 ` [musl] [PATCH 0/2] Support printing localized RADIXCHAR Rich Felker
2023-12-17  7:26   ` Markus Wichmann
2023-12-17 22:25   ` Pablo Correa Gomez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231216194325.23580-2-pabloyoyoista@postmarketos.org \
    --to=pabloyoyoista@postmarketos.org \
    --cc=ablocorrea@hotmail.com \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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).