summaryrefslogtreecommitdiff
path: root/gnulib/lib/localcharset.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib/lib/localcharset.c')
-rw-r--r--gnulib/lib/localcharset.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gnulib/lib/localcharset.c b/gnulib/lib/localcharset.c
index a04dc446..fa2207fe 100644
--- a/gnulib/lib/localcharset.c
+++ b/gnulib/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;