Skip to content
Snippets Groups Projects
Commit e43fef67 authored by Luigi Scarso's avatar Luigi Scarso
Browse files

better message for locale error

[[Split portion of a mixed commit.]]
parent b539c51b
Branches
Tags
No related merge requests found
...@@ -944,7 +944,7 @@ void lua_initialize(int ac, char **av) ...@@ -944,7 +944,7 @@ void lua_initialize(int ac, char **av)
/* could be compromised, and we exit. */ /* could be compromised, and we exit. */
env_locale = setlocale (LC_ALL, ""); env_locale = setlocale (LC_ALL, "");
if (!env_locale) { if (!env_locale) {
fprintf(stderr,"Unable to read environment locale:exit now.\n"); fprintf(stderr,"Unable to read environment locale: exit now.\n");
exit(1); exit(1);
} }
tmp = setlocale (LC_CTYPE, NULL); tmp = setlocale (LC_CTYPE, NULL);
...@@ -964,7 +964,7 @@ void lua_initialize(int ac, char **av) ...@@ -964,7 +964,7 @@ void lua_initialize(int ac, char **av)
/* we can't ensure a 'sane' locale for lua. */ /* we can't ensure a 'sane' locale for lua. */
env_locale = setlocale (LC_ALL, old_locale); env_locale = setlocale (LC_ALL, old_locale);
if (!env_locale) { if (!env_locale) {
fprintf(stderr,"Unable to restore original locale:exit now.\n"); fprintf(stderr,"Unable to restore original locale %s: exit now.\n",old_locale);
exit(1); exit(1);
} }
xfree(old_locale); xfree(old_locale);
......
#define luatex_svn_revision 6353 #define luatex_svn_revision 6354
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment