--- libs/ardour/io.cc.orig	2003-09-30 17:50:45.000000000 +0200
+++ libs/ardour/io.cc	2003-09-30 17:53:14.000000000 +0200
@@ -21,6 +21,7 @@
 #include <algorithm>
 #include <unistd.h>
 #include <cmath>
+#include <locale.h>
 
 #include <sigc++/bind.h>
 
@@ -1098,13 +1099,17 @@
 
 	for (unsigned long n = 0; n < n_outputs(); ++n) {
 		if (n) str += ',';
+		setlocale(LC_NUMERIC, "C");
 		snprintf (buf, sizeof(buf), "%g", _pans[n]);
+		setlocale(LC_NUMERIC, "");
 		str += buf;
 	}
 
 	node->add_property ("pans", str);
 
+	setlocale(LC_NUMERIC, "C");
 	snprintf (buf, sizeof(buf), "%g", gain());
+	setlocale(LC_NUMERIC, "");
 	node->add_property ("gain", buf);
 
 	snprintf (buf, sizeof(buf)-1, "%d,%d,%d,%d",
