From 52dd2fa6154caed653cb20198f240f7b752794cd Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 21 Apr 2005 15:10:36 +0000 Subject: [PATCH] fix brokenness with LANG setting --- panda/src/glxdisplay/glxGraphicsPipe.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/panda/src/glxdisplay/glxGraphicsPipe.cxx b/panda/src/glxdisplay/glxGraphicsPipe.cxx index d67d809699..59f577a378 100644 --- a/panda/src/glxdisplay/glxGraphicsPipe.cxx +++ b/panda/src/glxdisplay/glxGraphicsPipe.cxx @@ -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;