Skip to content

Commit

Permalink
init_lang: remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Mar 23, 2024
1 parent 1586fe4 commit 9750849
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/notcurses.c
Original file line number Diff line number Diff line change
Expand Up @@ -1090,9 +1090,8 @@ int ncplane_destroy_family(ncplane *ncp){
// called setlocale() themselves, and set the NCOPTION_INHIBIT_SETLOCALE flag.
// if that flag is set, we take the locale and encoding as we get them.
void init_lang(void){
char* setret;
#ifdef __MINGW32__
if((setret = setlocale(LC_ALL, ".UTF8")) == NULL){
if(setlocale(LC_ALL, ".UTF8") == NULL){
logwarn("couldn't set LC_ALL to utf8");
}
#endif
Expand All @@ -1107,7 +1106,7 @@ void init_lang(void){
return;
}
#ifndef __MINGW32__
if((setret = setlocale(LC_ALL, "")) == NULL){
if(setlocale(LC_ALL, "") == NULL){
logwarn("setting locale based on LANG failed");
}
#endif
Expand Down

0 comments on commit 9750849

Please sign in to comment.