History log of /netbsd-src/lib/libc/locale/mbrtoc32.c (Results 1 – 9 of 9)
Revision Date Author Comments
# a280a6b7 20-Aug-2024 riastradh <riastradh@NetBSD.org>

mbrtoc32(3): Fix name and type of mbrtowc_l return value.

This was from `int mbtowc_l(...)' in an earlier draft and I didn't
update it to size_t when I changed the draft to mbrtowc_l. Caught by
lin

mbrtoc32(3): Fix name and type of mbrtowc_l return value.

This was from `int mbtowc_l(...)' in an earlier draft and I didn't
update it to size_t when I changed the draft to mbrtowc_l. Caught by
lint.

`mb_len' avoids (harmless) clash with standard C function mblen(3).

PR lib/58618: mbrtocN(3) fails to keep shift state

show more ...


# 926b03a6 20-Aug-2024 riastradh <riastradh@NetBSD.org>

mbrtoc32(3): Use conversion state to handle shift sequences.

PR lib/58618: mbrtocN(3) fails to keep shift state


# c9acb578 18-Aug-2024 rillig <rillig@NetBSD.org>

mbrtoc16, mbrtoc32: fix comments, remove lint-specific workarounds

No binary change.


# 4651a634 17-Aug-2024 riastradh <riastradh@NetBSD.org>

libc: Add _l variants of the cNrtomb and mbrtocN functions.

These accept an explicit locale parameter, rather than using the
current locale.

Visible under _NETBSD_SOURCE, not exposed otherwise.

NO

libc: Add _l variants of the cNrtomb and mbrtocN functions.

These accept an explicit locale parameter, rather than using the
current locale.

Visible under _NETBSD_SOURCE, not exposed otherwise.

NOTE: This adds libc symbols. Riding the libc minor bump for the
non-_l variants of these from two days ago -- hope that's not pushing
it too far.

PR lib/58613: c*rtomb, mbrtoc* should have locale-parametric _l
variants

show more ...


# 0d3267e8 17-Aug-2024 christos <christos@NetBSD.org>

pass lint, XXX see lint bug.


# cc0f56db 16-Aug-2024 riastradh <riastradh@NetBSD.org>

mbrtoc32(3): Clarify control flow.

No need for another goto here; let's keep it clearly structured with
a single `out' label.

No functional change intended.

PR lib/52374: <uchar.h> missing


# cd14a503 15-Aug-2024 riastradh <riastradh@NetBSD.org>

libc: c32rtomb and mbrtoc32 are used internally, so weak-alias them.

PR lib/52374: <uchar.h> missing


# b36f256c 15-Aug-2024 riastradh <riastradh@NetBSD.org>

libc: Use the more idiomatic alignof from stdalign.h.

No functional change intended.

PR lib/52374: <uchar.h> missing


# 2cbd152a 15-Aug-2024 riastradh <riastradh@NetBSD.org>

libc: New C11 functions mbrtoc16, mbrtoc32, c16rtomb, c32rtomb.

The mbrtoc16/32 functions read mulitbyte strings according to the
current locale into UTF-16/32 code unit sequences; the c16/32rtomb
f

libc: New C11 functions mbrtoc16, mbrtoc32, c16rtomb, c32rtomb.

The mbrtoc16/32 functions read mulitbyte strings according to the
current locale into UTF-16/32 code unit sequences; the c16/32rtomb
functions write UTF-16/32 code unit sequences into multibyte strings
according to the current locale. The `r' means restartable: they
work incrementally and pick up where they left off.

NOTE: This bumps the libc minor version, since it adds new symbols.

PR lib/52374: <uchar.h> missing

show more ...