From 57e8c4a499e6b519f157eb2c176fe432f330c066 Mon Sep 17 00:00:00 2001 From: Amber Date: Wed, 6 Aug 2025 14:47:30 -0400 Subject: [PATCH] forgot to change locale after disabling utf8 --- src/bbs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bbs.c b/src/bbs.c index c59ef6c..17bc10d 100644 --- a/src/bbs.c +++ b/src/bbs.c @@ -8,7 +8,6 @@ #include "screens.h" const unsigned int GETCH_TIMEOUT = 10; /* in ms */ -const char* LOCALE = "en_US.UTF-8"; /* enable unicode support, set to "ANSI_X3.4-1968" for ascii */ char error_message[MAX_ERROR_MESSAGE_SIZE]; @@ -26,7 +25,7 @@ int main() { noecho(); /* hide keyboard input */ curs_set(0); /* disable cursor */ timeout(GETCH_TIMEOUT); /* set timeout for getch() */ - setlocale(LC_CTYPE, LOCALE); /* set locale, UTF8 support is enabled here */ + setlocale(LC_CTYPE, ""); /* set locale, UTF8 support is enabled here */ unsigned int terminal_width; unsigned int terminal_height;