Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 16 Dec 2023 20:36:42 +0100
From: Pablo Correa Gómez <>
Cc: Pablo Correa Gómez <>
Subject: [PATCH 0/2] Support printing localized RADIXCHAR

From: Pablo Correa Gómez <>

Since we've been discussing about translations, I've been looking a bit
around, and have found some low-hanging fruit, in the form of improving
printf-family output for localized systems.

I've tried to do the same for strtof family of functions, but I was not
completely sure on how to approach that. Forcing the radix char there
has the problem that numeric values as written for programming stop
being supported, and treating equally a "." and the localized case seems
to not be supported by POSIX. Does anybody have any thoughts about this?
Without that, this patch series might be a bit incomplete, since
certain localized printf outputs would not be possible to ingest in
strtof. Although I'm also unequally unsure if that's a requirement

Pablo Correa Gómez (2):
  langinfo: add support for LC_NUMERIC translations
  printf: translate RADIXCHAR for floating-point numbers

 src/locale/langinfo.c | 2 +-
 src/stdio/vfprintf.c  | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)


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.