diff options
author | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-29 23:33:33 +0200 |
---|---|---|
committer | Constantin Wenger <constantin.wenger@googlemail.com> | 2011-07-30 22:03:25 +0200 |
commit | 92f504f98d4af7a31df7b1bfa80fce114638f4cf (patch) | |
tree | f35de1d3da648f431f4eb4701085977c519e1d92 /src/guiPauseMenu.cpp | |
parent | 17830c5894fb6c2bbae73c3ce1046f8783b15e04 (diff) | |
download | minetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.tar.gz minetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.tar.bz2 minetest-92f504f98d4af7a31df7b1bfa80fce114638f4cf.zip |
fixed displaying "umlauts" (deutsch umlaute) and hopefully other non ASCII chars, too
Diffstat (limited to 'src/guiPauseMenu.cpp')
-rw-r--r-- | src/guiPauseMenu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guiPauseMenu.cpp b/src/guiPauseMenu.cpp index c704cd3fb..3a5d245bc 100644 --- a/src/guiPauseMenu.cpp +++ b/src/guiPauseMenu.cpp @@ -103,6 +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, "");
{
core::rect<s32> rect(0, 0, 140, btn_height);
rect = rect + v2s32(size.X/2-140/2, btn_y);
@@ -180,6 +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");
}
void GUIPauseMenu::drawMenu()
|