mailing list of musl libc
 help / color / mirror / code / Atom feed
* Funktion for converting strings from / to UTF-16 and UTF-32?
@ 2019-04-29 18:27 Philipp Klaus Krause
  2019-04-29 22:24 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Philipp Klaus Krause @ 2019-04-29 18:27 UTC (permalink / raw)
  To: musl


[-- Attachment #1.1: Type: text/plain, Size: 412 bytes --]

Would musl be interested in adding support for functions that convert
from / to UTF-16 and UTF-32 (assuming that char16_t is UTF-16 and
char32_t is UTF-32)?

There is the proposal N 2282, which was discussed half a year ago at the
Pittsburg meeting of WG 14; back then the comitee wanted to see a second
implementation fo these functions (the library that comes with SDCC
already has them).

Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread
* Re: Funktion for converting strings from / to UTF-16 and UTF-32?
@ 2019-04-30 21:14 Philipp Klaus Krause
  0 siblings, 0 replies; 3+ messages in thread
From: Philipp Klaus Krause @ 2019-04-30 21:14 UTC (permalink / raw)
  To: musl

I mostly agree with your opinion on the UTF-32 functions. They had been
added to the proposal in response to comments on earlier drafts. AFAIK
the addition of char32_t probably was in part a response to platforms
that do not use a UTF-32 wchar_t.
If the proposal is put up for straw poll at WG14 again, I'd suggest
separate polls for the UTF-16 vs UTF-32 functions.

For implementation experience, the UTF-16 functions is what matters.

I do consider the UTF-16 / char16_t functions to be quite useful.
UTF-16 is still quite relevant today. The format has found its way into
many specifications, such as USB and file systems so there are important
use case in converting from / to UTF-16.

Philipp



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

end of thread, other threads:[~2019-04-30 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-29 18:27 Funktion for converting strings from / to UTF-16 and UTF-32? Philipp Klaus Krause
2019-04-29 22:24 ` Rich Felker
2019-04-30 21:14 Philipp Klaus Krause

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