Revision: 56596
http://sourceforge.net/p/brlcad/code/56596
Author: brlcad
Date: 2013-08-05 20:01:13 +0000 (Mon, 05 Aug 2013)
Log Message:
-----------
force POSIX locale since our tcl script infrastructure expects it. we could
get away with just performing locale restrictions within the tcl callback
functions, but right now that is several hundred potential functions where we'd
be introducing redundant code. another possibility might be to introduce a tcl
command like 'zoom [clocale 0.5]' so the scripts themselves become aware, and
that would probably be best and a lot of work.
Modified Paths:
--------------
brlcad/trunk/src/mged/mged.c
Modified: brlcad/trunk/src/mged/mged.c
===================================================================
--- brlcad/trunk/src/mged/mged.c 2013-08-05 19:57:53 UTC (rev 56595)
+++ brlcad/trunk/src/mged/mged.c 2013-08-05 20:01:13 UTC (rev 56596)
@@ -28,6 +28,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
+#include <locale.h>
#include <ctype.h>
#include <signal.h>
#include <time.h>
@@ -1070,6 +1071,9 @@
setmode(fileno(stdout), O_BINARY);
setmode(fileno(stderr), O_BINARY);
+ /* mged inputs and outputs assume POSIX/C locale settings */
+ setlocale(LC_ALL, "POSIX");
+
timeout.tv_sec = 0;
timeout.tv_usec = 1;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits