diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-21 22:57:15 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2005-08-21 22:57:15 +0000 |
commit | afca65e242950cdfd382c1c0a33bcafa08896605 (patch) | |
tree | cc67536aadf0f3988b75c6f7ee737149b0d91990 /out_str.c | |
parent | e03244849545c85a87acd0d5276fd2e7c49d431a (diff) | |
download | mpfr-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |