Skip to content

Improve ANSI and POSIX locale coverage and compliance. #333

@ikbenlike

Description

@ikbenlike

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() and nl_langinfo_l()
  • Implement newlocale(), freelocale(), uselocale() and duplocale()
  • Provide an implementation of the locale utility, provided by glibc on linux
  • Provide an implementation of the localedef utility, 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions