X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fnl_langinfo.c;h=771c9533aeb11dfc261baf82954ad408b747ad04;hb=fa1db0dd22768f09a507674a30beb5b8a87bb35f;hp=a3d0d11eb3d233648938b842b3700ace621067ce;hpb=3f322af6c93f7eb4c6ce5ceb789416aae10a50bd;p=gnulib.git diff --git a/lib/nl_langinfo.c b/lib/nl_langinfo.c index a3d0d11eb..771c9533a 100644 --- a/lib/nl_langinfo.c +++ b/lib/nl_langinfo.c @@ -1,6 +1,6 @@ /* nl_langinfo() replacement: query locale dependent information. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2013 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -97,7 +97,7 @@ rpl_nl_langinfo (nl_item item) strings, appended in memory. */ return "\0\0\0\0\0\0\0\0\0\0"; # endif -# if GNULIB_defined_YESEXPR +# if GNULIB_defined_YESEXPR || !FUNC_NL_LANGINFO_YESEXPR_WORKS case YESEXPR: return "^[yY]"; case NOEXPR: @@ -141,7 +141,8 @@ nl_langinfo (nl_item item) { static char buf[2 + 10 + 1]; - /* Woe32 has a function returning the locale's codepage as a number. */ + /* The Windows API has a function returning the locale's codepage as + a number. */ sprintf (buf, "CP%u", GetACP ()); return buf; }