-
-
Notifications
You must be signed in to change notification settings - Fork 173
Open
Labels
Description
This issue is intended to give an overview of what is to be done to provide better coverage of the locale functionality as specified by POSIX. Due to the nature of the POSIX extensions it is almost inevitable some POSIX-related code will end up in the ANSI-option of mlibc, specifically in the implementation of setlocale().
- Improve
setlocale()s standards compliance in regards to resolving the locale which is to be used, as per the introduction of this page and the end of section 8.2 of this page - Properly implement the POSIX locale and the extra fields which aren't defined by ANSI
- Make
setlocale()change POSIX-defined locale attributes on locale changes - Implement
nl_langinfo()andnl_langinfo_l() - Implement
newlocale(),freelocale(),uselocale()andduplocale() - Provide an implementation of the
localeutility, provided by glibc on linux - Provide an implementation of the
localedefutility, also provided by glibc - Give locale functions the ability to read locales compiled by
localedef
Implementing the libc functions listed here will allow us to close issues #53 and #323. It will also allow work necessary to close #276 to continue. Furthermore, it would allow us to implement many functions in ansi/string-stubs.cpp, as a lot of the currently unimplemented functions depend on locale functionality.