summaryrefslogtreecommitdiff
path: root/lib/localcharset.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-05-09 02:53:40 +0200
committerBruno Haible <bruno@clisp.org>2010-05-09 02:53:40 +0200
commit9f5ab735f030faf651961d55ce3b849dd56dcff3 (patch)
treeb0423a3ff311c039ca5a3e58092beaf136ca5963 /lib/localcharset.c
parentcd2b137d95b850c778efb956d7901533787afa92 (diff)
downloadgnulib-9f5ab735f030faf651961d55ce3b849dd56dcff3.tar.gz
Update for Cygwin 1.7.
Diffstat (limited to 'lib/localcharset.c')
-rw-r--r--lib/localcharset.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/localcharset.c b/lib/localcharset.c
index 26a2b03daa..5610a22e26 100644
--- a/lib/localcharset.c
+++ b/lib/localcharset.c
@@ -369,10 +369,9 @@ locale_charset (void)
codeset = nl_langinfo (CODESET);
# ifdef __CYGWIN__
- /* Cygwin 1.5.x does not have locales. nl_langinfo (CODESET) always
- returns "US-ASCII". As long as this is not fixed, return the suffix
- of the locale name from the environment variables (if present) or
- the codepage as a number. */
+ /* Cygwin < 1.7 does not have locales. nl_langinfo (CODESET) always
+ returns "US-ASCII". Return the suffix of the locale name from the
+ environment variables (if present) or the codepage as a number. */
if (codeset != NULL && strcmp (codeset, "US-ASCII") == 0)
{
const char *locale;