/* * Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de * All rights reserved. Distributed under the terms of the MIT License. */ #include #include "LocaleBackend.h" #include using BPrivate::Libroot::gLocaleBackend; using BPrivate::Libroot::gPosixLanginfo; extern "C" char* nl_langinfo(nl_item item) { if (item < 0 || item >= _NL_LANGINFO_LAST) return const_cast(""); if (gLocaleBackend != NULL) return const_cast(gLocaleBackend->GetLanginfo(item)); return const_cast(gPosixLanginfo[item]); }