From 002f65fb54cb6d611ba8ebc384c0a0281ed4fc05 Mon Sep 17 00:00:00 2001 From: nick black Date: Mon, 1 Jun 2020 09:16:05 -0400 Subject: [PATCH] init_lang(): properly invoke setlocale() for LANG --- src/lib/notcurses.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/notcurses.c b/src/lib/notcurses.c index 3f418ae16..06fb64413 100644 --- a/src/lib/notcurses.c +++ b/src/lib/notcurses.c @@ -690,7 +690,7 @@ init_banner(const notcurses* nc){ static void init_lang(const notcurses_options* opts){ if(!(opts->flags & NCOPTION_INHIBIT_SETLOCALE)){ - const char* locale = setlocale(LC_ALL, NULL); + const char* locale = setlocale(LC_ALL, ""); if(locale && (!strcmp(locale, "C") || !strcmp(locale, "POSIX"))){ const char* lang = getenv("LANG"); if(lang){