Report errors when setlocale(3) fails

This commit is contained in:
Pierre Pronchery 2015-06-13 00:41:01 -04:00
parent 7802edbd57
commit 94d0b4c861

View File

@ -453,7 +453,9 @@ int main(int argc, char * argv[])
int o;
Run * run;
setlocale(LC_ALL, "");
if(setlocale(LC_ALL, "") != 0)
fprintf(stderr, PROGNAME ": %s: %s\n", "setlocale",
strerror(errno));
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
gtk_init(&argc, &argv);