Report errors when setlocale(3) fails
This commit is contained in:
parent
7802edbd57
commit
94d0b4c861
|
@ -453,7 +453,9 @@ int main(int argc, char * argv[])
|
||||||
int o;
|
int o;
|
||||||
Run * run;
|
Run * run;
|
||||||
|
|
||||||
setlocale(LC_ALL, "");
|
if(setlocale(LC_ALL, "") != 0)
|
||||||
|
fprintf(stderr, PROGNAME ": %s: %s\n", "setlocale",
|
||||||
|
strerror(errno));
|
||||||
bindtextdomain(PACKAGE, LOCALEDIR);
|
bindtextdomain(PACKAGE, LOCALEDIR);
|
||||||
textdomain(PACKAGE);
|
textdomain(PACKAGE);
|
||||||
gtk_init(&argc, &argv);
|
gtk_init(&argc, &argv);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user