Skip to content

Commit

Permalink
skip limited font warning if the selected locale is likewise limited (~
Browse files Browse the repository at this point in the history
  • Loading branch information
mintty committed May 7, 2019
1 parent a4f02ab commit ea7d800
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/wintext.c
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,12 @@ adjust_font_weights(struct fontfam * ff)
return;
}
if (!data.ansi_found && !data.cs_found) {
show_font_warning(ff, _("Font has limited support for character ranges"));
string l;
if (!strcmp(cfg.charset, "CP437") || ((l = getlocenvcat("LC_CTYPE")) && strstr(l, "CP437"))) {
// accept limited range
}
else
show_font_warning(ff, _("Font has limited support for character ranges"));
}

// find available widths closest to selected widths
Expand Down

0 comments on commit ea7d800

Please sign in to comment.