[initlang] fix sense of ASCII test

pull/2411/head
nick black 3 years ago
parent 282744b39d
commit 3139bf019a
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -1076,9 +1076,9 @@ notcurses_early_init(const struct notcurses_options* opts, FILE* fp, unsigned* u
*utf8 = true;
}else{
*utf8 = false;
if(encoding && (!strcmp(encoding, "ANSI_X3.4-1968") ||
!strcmp(encoding, "US-ASCII") ||
!strcmp(encoding, "ASCII"))){
if(encoding && (strcmp(encoding, "ANSI_X3.4-1968") &&
strcmp(encoding, "US-ASCII") &&
strcmp(encoding, "ASCII"))){
fprintf(stderr, "Encoding (\"%s\") was neither ANSI_X3.4-1968 nor UTF-8, refusing to start\n Did you call setlocale()?\n",
encoding ? encoding : "none found");
free(ret);

Loading…
Cancel
Save