init_lang(): properly invoke setlocale() for LANG

pull/665/head
nick black 4 years ago
parent e3c14ed569
commit 002f65fb54
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -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){

Loading…
Cancel
Save