Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sat, 16 Dec 2023 20:36:43 +0100
From: Pablo Correa Gómez <>
Cc: Pablo Correa Gómez <>
Subject: [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;

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.