getdate.y: avoid locale-dependent date parsing failure
authorJim Meyering <meyering@redhat.com>
Sat, 2 Aug 2008 13:40:39 +0000 (15:40 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 4 Aug 2008 05:44:56 +0000 (07:44 +0200)
commit316a91c6f78b93aed27747bdbdc1ed0fdb9c5419
tree5a029e3d21cbd4cb86631a18087fde2f7d1e028c
parent5f0d8cd17a0f60afc2cf280b073ad314f7700225
getdate.y: avoid locale-dependent date parsing failure

In Turkish locales, getdate would fail to recognize keywords
containing a lowercase "i".  The solution is not to rely on
locale-sensitive case-conversion.
* lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
(lookup_word): Use c_toupper in place of toupper.
(yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
Reported by Vefa Bicakci <bicave@superonline.com> in
<http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
* modules/getdate (Depends-on): Add c-ctype.
ChangeLog
lib/getdate.y
modules/getdate