forked from github/server
Useful error message when locale is not set correctly
This commit is contained in:
parent
d9b65024a0
commit
31b8d65f1f
|
@ -0,0 +1 @@
|
||||||
|
bin/
|
|
@ -215,7 +215,9 @@ void locale_init(void)
|
||||||
{
|
{
|
||||||
setlocale(LC_CTYPE, "");
|
setlocale(LC_CTYPE, "");
|
||||||
setlocale(LC_NUMERIC, "C");
|
setlocale(LC_NUMERIC, "C");
|
||||||
assert(towlower(0xC4)==0xE4); /* Ä => ä */
|
if (towlower(0xC4)!=0xE4) { /* Ä => ä */
|
||||||
|
log_error(("Umlaut conversion is not working properly. Wrong locale? LANG=%s\n", getenv("LANG")));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
extern void bind_eressea(struct lua_State * L);
|
extern void bind_eressea(struct lua_State * L);
|
||||||
|
|
Loading…
Reference in New Issue