summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--cxx/ismpf.cc2
-rw-r--r--cxx/osmpf.cc2
-rw-r--r--tests/cxx/t-locale.cc4
4 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index cd4bdd96a..dac24a7cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-28 Marc Glisse <marc.glisse@inria.fr>
+
+ * cxx/ismpf.cc: Use GMP_DECIMAL_POINT.
+ * cxx/osmpf.cc: Likewise.
+ * tests/cxx/t-locale.cc: Likewise.
+
2013-06-19 Torbjorn Granlund <tege@gmplib.org>
* mpn/powerpc64/p6/lshift.asm: Rewrite switching-into-loop code.
diff --git a/cxx/ismpf.cc b/cxx/ismpf.cc
index 520d4c3e2..b97d68b39 100644
--- a/cxx/ismpf.cc
+++ b/cxx/ismpf.cc
@@ -45,7 +45,7 @@ operator>> (istream &i, mpf_ptr f)
bool ok = false;
// C decimal point, as expected by mpf_set_str
- const char *lconv_point = localeconv()->decimal_point;
+ const char *lconv_point = GMP_DECIMAL_POINT;
// C++ decimal point
#if HAVE_STD__LOCALE
diff --git a/cxx/osmpf.cc b/cxx/osmpf.cc
index 402a57022..f60514bb7 100644
--- a/cxx/osmpf.cc
+++ b/cxx/osmpf.cc
@@ -47,7 +47,7 @@ operator<< (ostream &o, mpf_srcptr f)
point[0] = use_facet< numpunct<char> >(o.getloc()).decimal_point();
point[1] = '\0';
#else
- const char *point = localeconv()->decimal_point;
+ const char *point = GMP_DECIMAL_POINT;
#endif
GMP_ASPRINTF_T_INIT (d, &result);
diff --git a/tests/cxx/t-locale.cc b/tests/cxx/t-locale.cc
index b649d9557..f05bb6dbb 100644
--- a/tests/cxx/t-locale.cc
+++ b/tests/cxx/t-locale.cc
@@ -105,7 +105,7 @@ check_input (void)
cout << " point " << point[i] << "\n";
cout << " str \"" << str << "\"\n";
cout << " localeconv point \""
- << localeconv()->decimal_point << "\"\n";
+ << GMP_DECIMAL_POINT << "\"\n";
abort ();
}
@@ -120,7 +120,7 @@ check_input (void)
cout << " got " << got << "\n";
cout << " want " << want << "\n";
cout << " localeconv point \""
- << localeconv()->decimal_point << "\"\n";
+ << GMP_DECIMAL_POINT << "\"\n";
abort ();
}
}