LibC: Start work on locales

This patch adds 2 locales, POSIX locale and UTF8 locale.

functions `mbstowcs()` and `strcoll()` use locales to do convertions and
comparison respectively.
This commit is contained in:
2024-08-07 19:00:05 +03:00
parent 7afdfb150f
commit 3b23458ecc
5 changed files with 183 additions and 13 deletions

View File

@@ -9,7 +9,7 @@ __BEGIN_DECLS
#ifndef __locale_t_defined
#define __locale_t_defined 1
typedef int locale_t;
typedef enum { LOCALE_INVALID, LOCALE_POSIX, LOCALE_UTF8 } locale_t;
#endif
__END_DECLS