mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH 0/2] Support printing localized RADIXCHAR
@ 2023-12-16 19:36 Pablo Correa Gómez
  2023-12-16 19:36 ` [musl] [PATCH 1/2] langinfo: add support for LC_NUMERIC translations Pablo Correa Gómez
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pablo Correa Gómez @ 2023-12-16 19:36 UTC (permalink / raw)
  To: musl; +Cc: Pablo Correa Gómez

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

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

--
2.43.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-18 17:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-16 19:36 [musl] [PATCH 0/2] Support printing localized RADIXCHAR Pablo Correa Gómez
2023-12-16 19:36 ` [musl] [PATCH 1/2] langinfo: add support for LC_NUMERIC translations Pablo Correa Gómez
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

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