haiku/headers
Trung Nguyen d02c0bade7 libs/posix: Fix NULL pointer in uselocale
uselocale now attempts to create a backend and a databrige.

If the attempt fails due to a missing libroot-addon-icu, uselocale
does nothing (to support applications calling uselocale during
startup to enforce the C locale).

Else, uselocale will fail with ENOMEM.

LocaleBackend::CreateBackend() has been modified to return a status_t
that indicates whether NULL is returned due to out of memory (B_NO_MEMORY)
or due to being unable to load the ICU addon (B_MISSING_LIBRARY).

Change-Id: I0f62ebde5890364c64e6694ec58d38de43ec6841
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5505
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2022-08-03 00:16:08 +00:00
..
build libbe_build: Fix build on non-Haiku platforms. 2021-11-18 15:42:17 -05:00
compatibility headers/bsd: Rewrite link_elf.h. 2022-06-28 13:07:53 -04:00
config riscv: cleanup architecture macro checks 2021-09-01 18:04:59 +00:00
cpp build fix. 2015-11-12 22:24:16 +01:00
glibc
libs libagg: use size_t for operator new argument 2022-04-23 19:55:31 +00:00
os Refactor touchpad movement generation by migrating MovementMaker to userland. 2022-07-18 16:00:29 +00:00
posix libs/posix: Implemented new locale functions 2022-07-11 16:30:16 +00:00
private libs/posix: Fix NULL pointer in uselocale 2022-08-03 00:16:08 +00:00
tools cppunit: Enable CPPUNIT_HAVE_SSTREAM for the non-legacy GCC. 2022-03-29 19:09:38 -04:00