mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
admit ASCII as synonym for ANSI_X3.4-1968
This commit is contained in:
parent
56a5e1903b
commit
b053f4b941
@ -1070,7 +1070,9 @@ notcurses* notcurses_core_init(const notcurses_options* opts, FILE* outfp){
|
||||
bool utf8;
|
||||
if(encoding && !strcmp(encoding, "UTF-8")){
|
||||
utf8 = true;
|
||||
}else if(encoding && (!strcmp(encoding, "ANSI_X3.4-1968") || !strcmp(encoding, "US-ASCII"))){
|
||||
}else if(encoding && (!strcmp(encoding, "ANSI_X3.4-1968") ||
|
||||
!strcmp(encoding, "US-ASCII") ||
|
||||
!strcmp(encoding, "ASCII"))){
|
||||
utf8 = false;
|
||||
}else{
|
||||
fprintf(stderr, "Encoding (\"%s\") was neither ANSI_X3.4-1968 nor UTF-8, refusing to start\n Did you call setlocale()?\n",
|
||||
|
Loading…
x
Reference in New Issue
Block a user