1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

set locales to C because en_US not installed on some systems, only UTF-8 version and en_US.UTF-8 does not work.

This commit is contained in:
Constantin Wenger 2011-07-30 10:14:58 +02:00
parent 92f504f98d
commit 9baae3a701
6 changed files with 30 additions and 20 deletions

View file

@ -103,7 +103,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize)
const s32 btn_gap = 20;
const s32 btn_num = 4;
s32 btn_y = size.Y/2-((btn_num*btn_height+(btn_num-1)*btn_gap))/2;
setlocale(LC_CTYPE, "");
changeCtype("");
{
core::rect<s32> rect(0, 0, 140, btn_height);
rect = rect + v2s32(size.X/2-140/2, btn_y);
@ -181,7 +181,7 @@ void GUIPauseMenu::regenerateGui(v2u32 screensize)
Environment->addStaticText(narrow_to_wide(os.str()).c_str(), rect, false, true, this, 259);
}
setlocale(LC_CTYPE, "en_US");
changeCtype("C");
}
void GUIPauseMenu::drawMenu()