Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
commitlog-requ...@lists.openmoko.org
You can reach the person managing the list at
commitlog-ow...@lists.openmoko.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r5793 - trunk/eda/fped (wer...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2010-01-18 23:57:49 +0100 (Mon, 18 Jan 2010)
New Revision: 5793
Modified:
trunk/eda/fped/gui.c
Log:
gtk_init calls setlocale(..., ""), which can upset all uses of scanf, printf,
etc. We restore sanity by resetting the locale to "C". Reported by Nick
Oestergaard.
- gui.c (gui_init): reset the locale to "C" after calling gtk_init
Modified: trunk/eda/fped/gui.c
===================================================================
--- trunk/eda/fped/gui.c 2010-01-12 02:18:58 UTC (rev 5792)
+++ trunk/eda/fped/gui.c 2010-01-18 22:57:49 UTC (rev 5793)
@@ -11,6 +11,7 @@
*/
+#include <locale.h>
#include <gtk/gtk.h>
#include "inst.h"
@@ -303,6 +304,7 @@
int gui_init(int *argc, char ***argv)
{
gtk_init(argc, argv);
+ setlocale(LC_ALL, "C"); /* damage control */
return 0;
}
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog