mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
fix brokenness with LANG setting
This commit is contained in:
parent
f49a862037
commit
52dd2fa615
@ -48,8 +48,15 @@ glxGraphicsPipe(const string &display) {
|
||||
display_spec = ":0.0";
|
||||
}
|
||||
|
||||
// The X docs say we should do this to get international character
|
||||
// support from the keyboard.
|
||||
setlocale(LC_ALL, "");
|
||||
|
||||
// But it's important that we use the "C" locale for numeric
|
||||
// formatting, since all of the internal Panda code assumes this--we
|
||||
// need a decimal point to mean a decimal point.
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
|
||||
_is_valid = false;
|
||||
_supported_types = OT_window | OT_buffer | OT_texture_buffer;
|
||||
_display = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user