History log of /haiku/src/system/libroot/posix/wchar/mbsrtowcs.cpp
Revision Date Author Comments
# d338200e 30-May-2022 Trung Nguyen <trungnt282910@gmail.com>

libs/posix: Implemented new locale functions

Implemented the missing POSIX functions in <locale.h>:
newlocale, duplocale, uselocale, and freelocale, and also
provided missing type definitions for <locale.h>.

Implemented missing POSIX locale-based function variants.

Modified LocaleBackend so that it could support thread-local
locales.

Some glibc-like locale-related variables supporting
ctype and printf family of functions have also been updated
to reflect the thread-local variables present in the latest
glibc sources.

As there have been some modifications to global symbols
in libroot, libroot_stubs.c has been regenerated.

Bug: #17168
Change-Id: Ibf296c58c47d42d1d1dfb2ce64042442f2679431
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5351
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>


# 77f51255 21-Mar-2020 X512 <danger_mail@list.ru>

Fix double extern "C" pointed by clang.

Change-Id: Ie595dd99d01149868a4f60354ef89fa861cf856b
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2389
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 47a21c5c 30-Aug-2019 Augustin Cavalier <waddlesplash@gmail.com>

s/Haiku License/MIT License/g.

They are the same thing.


# d7965519 07-Jan-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: LocaleBackend.h is not a local header for wchar.


# 70dda8d8 12-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix POSIX-specific mbsrtowcs() and wcsrtombs().

* src was sometimes accessed incorrectly (needs double dereference)
* the source pointers may only be adjusted in case there is the
destination pointer is not NULL


# 47e0423a 11-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Drop public symbols for mbsnrtowcs() and wcsnrtombs().

We only implement POSIX_VERSION 199009, so these needn't be exported.


# 73186b2f 07-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Add implementation of mbsrtowcs() to our locale backend.

* add MultibyteStringToWchar() to ICU locale backend
* implement mbsrtowcs() and mbsnrtowcs() on top of
MultibyteStringToWchar()
* drop respective glibc files


# d7965519f2ecef3d7653e3531a39ec3cf62951ef 07-Jan-2012 Oliver Tappe <zooey@hirschkaefer.de>

Cleanup: LocaleBackend.h is not a local header for wchar.


# 70dda8d85a5e463e8347ca28d2090ac8cd13e3dc 12-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Fix POSIX-specific mbsrtowcs() and wcsrtombs().

* src was sometimes accessed incorrectly (needs double dereference)
* the source pointers may only be adjusted in case there is the
destination pointer is not NULL


# 47e0423a09b45322c9c703cec20d3d42150b0136 11-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Drop public symbols for mbsnrtowcs() and wcsnrtombs().

We only implement POSIX_VERSION 199009, so these needn't be exported.


# 73186b2fcd3d7af7b513f0f9c4a481315d0579bc 07-Dec-2011 Oliver Tappe <zooey@hirschkaefer.de>

Add implementation of mbsrtowcs() to our locale backend.

* add MultibyteStringToWchar() to ICU locale backend
* implement mbsrtowcs() and mbsnrtowcs() on top of
MultibyteStringToWchar()
* drop respective glibc files