This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 2/5] Refactor bug-strtod2.c to be type generic
- From: Joseph Myers <joseph at codesourcery dot com>
- To: "Paul E. Murphy" <murphyp at linux dot vnet dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Tue, 17 May 2016 21:26:57 +0000
- Subject: Re: [PATCH 2/5] Refactor bug-strtod2.c to be type generic
- Authentication-results: sourceware.org; auth=none
- References: <cover dot 1463433826 dot git dot murphyp at linux dot vnet dot ibm dot com> <2d0b40477a4a647a4f6792e68bd735554db1dd6d dot 1463433827 dot git dot murphyp at linux dot vnet dot ibm dot com>
On Mon, 16 May 2016, Paul E. Murphy wrote:
> + if (setlocale (LC_ALL, "tr_TR.UTF-8") == NULL) \
> + { \
> + puts ("cannot set locale"); \
> + return 0; \
> + } \
I think it's more natural for this to go once in do_test, before calling
STRTOD_TEST_FOREACH, rather than repeating this for each type.
--
Joseph S. Myers
joseph@codesourcery.com