From 985fc132f23dbb83de76c5af9e783ef1b5900148 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Mon, 4 Apr 2016 15:18:13 +0200 Subject: strfmon_l: Use specified locale for number formatting [BZ #19633] --- stdlib/strfmon_l.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'stdlib/strfmon_l.c') diff --git a/stdlib/strfmon_l.c b/stdlib/strfmon_l.c index b357020..5851a5b 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; -- cgit v1.1