summaryrefslogtreecommitdiff
path: root/out_str.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-21 22:57:15 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2005-08-21 22:57:15 +0000
commitafca65e242950cdfd382c1c0a33bcafa08896605 (patch)
treecc67536aadf0f3988b75c6f7ee737149b0d91990 /out_str.c
parente03244849545c85a87acd0d5276fd2e7c49d431a (diff)
downloadmpfr-afca65e242950cdfd382c1c0a33bcafa08896605.tar.gz
Better locale support (for the decimal point in string conversions
and input/output). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3729 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'out_str.c')
-rw-r--r--out_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/out_str.c b/out_str.c
index c96e58da0..ba47f4fb6 100644
--- a/out_str.c
+++ b/out_str.c
@@ -22,6 +22,7 @@ MA 02110-1301, USA. */
#include <stdio.h>
#include <string.h>
#include <limits.h>
+#include <locale.h>
#include "mpfr-impl.h"
@@ -83,7 +84,7 @@ mpfr_out_str (FILE *stream, int base, size_t n_digits, mpfr_srcptr op,
/* outputs mantissa */
fputc (*s++, stream); e--; /* leading digit */
- fputc ('.', stream); /* decimal point */
+ fputc (MPFR_DECIMAL_POINT, stream);
fputs (s, stream); /* rest of mantissa */
(*__gmp_free_func) (s0, l);