adapt setlocale to support possibility of failure
authorRich Felker <dalias@aerifal.cx>
Sun, 21 Oct 2018 01:54:20 +0000 (21:54 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 21 Oct 2018 01:54:20 +0000 (21:54 -0400)
commitd88e5dfa8b989dafff4b748bfb3cba3512c8482e
tree55aed89246eda30168d6b60d86073a55f3b3f4e9
parent8084d6ab57cdb0b8f328d3cdbad3b9d09eaaee04
adapt setlocale to support possibility of failure

introduce a new LOC_MAP_FAILED sentinel for errors, since null
pointers for a category's locale map indicate the C locale. at this
time, __get_locale does not fail, so there should be no functional
change by this commit.
src/internal/locale_impl.h
src/locale/setlocale.c