Report errors when setlocale() fails

This commit is contained in:
Pierre Pronchery 2013-12-28 04:54:01 +01:00
parent f5533deca2
commit bb9d07c607

View File

@ -95,7 +95,8 @@ int main(int argc, char * argv[])
GtkIconSize huge;
int o;
setlocale(LC_ALL, "");
if(setlocale(LC_ALL, "") == NULL)
_error("setlocale", 1);
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
gtk_init(&argc, &argv);