Mercurial > gnulib
changeset 39783:30b98859ed4a
setlocale: Trivial simplification.
* lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 11 Aug 2018 20:23:37 +0200 |
parents | ea4a44483d25 |
children | d0396d6a1990 |
files | ChangeLog lib/setlocale.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Aug 11 18:58:55 2018 -0700 +++ b/ChangeLog Sat Aug 11 20:23:37 2018 +0200 @@ -1,3 +1,8 @@ +2018-08-11 Bruno Haible <bruno@clisp.org> + + setlocale: Trivial simplification. + * lib/setlocale.c (setlocale_unixlike): Remove redundant #if. + 2018-08-11 Paul Eggert <eggert@cs.ucla.edu> verify: port 'assume' to traditional tools
--- a/lib/setlocale.c Sat Aug 11 18:58:55 2018 -0700 +++ b/lib/setlocale.c Sat Aug 11 20:23:37 2018 +0200 @@ -635,10 +635,8 @@ /* The native Windows implementation of setlocale understands the special locale name "C", but not "POSIX". Therefore map "POSIX" to "C". */ -#if defined _WIN32 && !defined __CYGWIN__ if (locale != NULL && strcmp (locale, "POSIX") == 0) locale = "C"; -#endif /* First, try setlocale with the original argument unchanged. */ result = setlocale (category, locale);