Compare commits

...

2 Commits

Author SHA1 Message Date
Bananymous 028c7a822f LibC: Don't define SCHAR_MAX in locale.c 2025-04-21 22:21:40 +03:00
Bananymous 18f5f98e62 General: Mark USB hubs done in README 2025-04-21 22:13:31 +03:00
2 changed files with 7 additions and 5 deletions

View File

@ -38,10 +38,14 @@ If you want to try out DOOM, you should first enter the GUI environment using th
- [x] PS2 keyboard (all scancode sets)
- [x] PS2 mouse
- [x] USB
- [x] xHCI
- [ ] EHCI
- [ ] OHCI
- [ ] UHCI
- [x] Keyboard
- [x] Mouse
- [x] Mass storage
- [ ] Hubs
- [x] Hubs
- [ ] ...
- [ ] virtio devices (network, storage)

View File

@ -22,7 +22,7 @@ static locale_t str_to_locale(const char* locale)
if (strcmp(locale, "C") == 0 || strcmp(locale, "LOCALE_POSIX") == 0)
return LOCALE_POSIX;
if (strcmp(locale, "C.UTF8") == 0)
if (strcmp(locale, "C.UTF-8") == 0)
return LOCALE_UTF8;
return LOCALE_INVALID;
}
@ -32,14 +32,12 @@ static const char* locale_to_str(locale_t locale)
if (locale == LOCALE_POSIX)
return "C";
if (locale == LOCALE_UTF8)
return "C.UTF8";
return "C.UTF-8";
ASSERT_NOT_REACHED();
}
struct lconv* localeconv(void)
{
constexpr char CHAR_MAX = __SCHAR_MAX__;
static lconv lconv;
lconv.currency_symbol = const_cast<char*>("");
lconv.decimal_point = const_cast<char*>(".");