about summary refs log tree commit diff
path: root/stdlib/strfmon_l.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2016-04-04 15:18:13 +0200
committerFlorian Weimer <fweimer@redhat.com>2016-04-04 15:18:13 +0200
commit985fc132f23dbb83de76c5af9e783ef1b5900148 (patch)
treef41ba85592ceae633f11c973f81971da23653f15 /stdlib/strfmon_l.c
parent5cd7af016d8587ff53b20ba259746f97edbddbf7 (diff)
downloadglibc-985fc132f23dbb83de76c5af9e783ef1b5900148.tar.gz
glibc-985fc132f23dbb83de76c5af9e783ef1b5900148.tar.xz
glibc-985fc132f23dbb83de76c5af9e783ef1b5900148.zip
strfmon_l: Use specified locale for number formatting [BZ #19633]
Diffstat (limited to 'stdlib/strfmon_l.c')
-rw-r--r--stdlib/strfmon_l.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/stdlib/strfmon_l.c b/stdlib/strfmon_l.c
index b3570209fa..5851a5b94a 100644
--- a/stdlib/strfmon_l.c
+++ b/stdlib/strfmon_l.c
@@ -68,9 +68,6 @@
 #define _NL_CURRENT(category, item) \
   (current->values[_NL_ITEM_INDEX (item)].string)
 
-extern int __printf_fp (FILE *, const struct printf_info *,
-			const void *const *);
-libc_hidden_proto (__printf_fp)
 /* This function determines the number of digit groups in the output.
    The definition is in printf_fp.c.  */
 extern unsigned int __guess_grouping (unsigned int intdig_max,
@@ -532,7 +529,7 @@ __vstrfmon_l (char *s, size_t maxsize, __locale_t loc, const char *format,
       info.extra = 1;		/* This means use values from LC_MONETARY.  */
 
       ptr = &fpnum;
-      done = __printf_fp (&f._sbf._f, &info, &ptr);
+      done = __printf_fp_l (&f._sbf._f, loc, &info, &ptr);
       if (done < 0)
 	return -1;