From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from firefly.ecentrum.hu (firefly.ecentrum.hu [78.131.87.195]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s7SI6KhC025218 for ; Thu, 28 Aug 2014 14:06:20 -0400 (EDT) Received: from serenity.local (serenity [192.168.0.10]) by firefly.ecentrum.hu (Postfix) with ESMTPSA id 48BA7DE233; Thu, 28 Aug 2014 20:06:18 +0200 (CEST) Date: Thu, 28 Aug 2014 20:06:17 +0200 From: =?iso-8859-1?Q?L=C9VAI_D=E1niel?= To: Ingo Schwarze Cc: discuss@mdocml.bsd.lv Subject: Re: "cannot parse date" for a seemingly valid .Dd parameter Message-ID: <20140828180617.GA15202@serenity.local> References: <20140827145844.GI29425@serenity.local> <53FDF43F.3060001@bsd.lv> <20140827151513.GJ29425@serenity.local> <20140828004342.GF912@iris.usta.de> <20140828083900.GM29425@serenity.local> <20140828161103.GR912@iris.usta.de> <20140828163215.GN29425@serenity.local> <20140828173522.GT912@iris.usta.de> X-Mailinglist: mdocml-discuss Reply-To: discuss@mdocml.bsd.lv MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20140828173522.GT912@iris.usta.de> User-Agent: Mutt/1.5.22hg (2013-10-16) On cs, aug 28, 2014 at 19:35:22 +0200, Ingo Schwarze wrote: > Hi Daniel, > > LÉVAI Dániel wrote on Thu, Aug 28, 2014 at 06:32:15PM +0200: > > > So here are the new outputs of the given commands: > > > > $ ./configure > [...] > > wchar: yes > > Good. > > > manpath: no > > By the way, that is odd. Given that the bug hides so skillfully, > i'd like to pay attention to any clue. You say you are on Linux? Yes, this is on Linux; a slightly modified version of Slackware. > Can you show the output of: > > $ manpath > $ which manpath > $ man -w manpath Actually, there is no manpath binary on my system, nor manual page for it. > $ ls -ald /etc/man* -rw-r--r-- 1 root root 4729 2014-08-20 17.02.35 /etc/man.conf -rw-r--r-- 1 root root 2038 2014-08-20 15.39.26 /etc/mandoc.conf > $ man -w man.conf /usr/man/man5/man.conf.5.gz > $ man -V man, version 1.6g > So even though we haven't found your bug yet, your report already > resulted in one useful bugfix. Alright! :-) > > "Unfortunately", CVS HEAD still doesn't emit my original problem > > when using '-Tlint'. > > So we have no choice but to retry with 1.13.1. Please go to your > checkout area and do this: > > $ cvs up -C > $ cvs up -r VERSION_1_13_1 > $ patch < tmp.patch # the debug patch appended below (for 1.13.1) > $ make clean > $ make Because for a second I thought I was hallucinating (again.. :P), 'cause I've compile the 1_13_1 tag and the problem was not there, then checked with the 1.13.1 release tarball, and it was not there either, I dug deeper and turns out, that with these latest tests, I didn't use my usual CFLAGS during the compilation. And the culprit for me seems to be: $ cvs up -rVERSION_1_13_1 $ CFLAGS='-DOSNAME=\"Slackware\ Linux\"' make ... $ ./mandoc -Tlint test.1 mandoc: ../mdocml/test.1:1:2: WARNING: cannot parse date, using it verbatim: August 27, 2014 Without the -DOSNAME define, it doesn't emit this warning. I know I'm not crazy! Sort of... :) Sorry for not posting the exact steps I've been using to compile mdocml... rookie mistake.. > > And then we need the usual sequence of commands again... $ ./mandoc -Wall test.1 > /dev/null main: LC_TIME = C a2time: LC_TIME = C a2time: LC_TIME = C a2time: LC_TIME = C mandoc: test.1:1:2: WARNING: cannot parse date, using it verbatim: August 27, 2014 $ ./mandoc -Wall -Tlocale test.1 > /dev/null main: LC_TIME = C a2time: LC_TIME = C a2time: LC_TIME = C a2time: LC_TIME = C mandoc: test.1:1:2: WARNING: cannot parse date, using it verbatim: August 27, 2014 ascii_init: LC_TIME = C ascii_init: LC_TIME = hu_HU.UTF-8 config.h: ===================8<=================== #ifndef MANDOC_CONFIG_H #define MANDOC_CONFIG_H #if defined(__linux__) || defined(__MINT__) # define _GNU_SOURCE /* getsubopt(), strcasestr(), strptime() */ #endif #include #include #define VERSION "1.13.1" #if !defined(__BEGIN_DECLS) # ifdef __cplusplus # define __BEGIN_DECLS extern "C" { # else # define __BEGIN_DECLS # endif #endif #if !defined(__END_DECLS) # ifdef __cplusplus # define __END_DECLS } # else # define __END_DECLS # endif #endif #ifndef HAVE_FGETLN extern char *fgetln(FILE *, size_t *); #endif #ifndef HAVE_GETSUBOPT extern int getsubopt(char **, char * const *, char **); extern char *suboptarg; #endif #ifndef HAVE_REALLOCARRAY extern void *reallocarray(void *, size_t, size_t); #endif #ifndef HAVE_SQLITE3_ERRSTR extern const char *sqlite3_errstr(int); #endif #ifndef HAVE_STRCASESTR extern char *strcasestr(const char *, const char *); #endif #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); #endif #ifndef HAVE_STRLCPY extern size_t strlcpy(char *, const char *, size_t); #endif #ifndef HAVE_STRSEP extern char *strsep(char **, const char *); #endif #endif /* MANDOC_CONFIG_H */ ===================8<=================== But regarding CVS HEAD, even with the OSNAME define, it won't tell me that warning. Daniel -- LÉVAI Dániel PGP key ID = 0x83B63A8F Key fingerprint = DBEC C66B A47A DFA2 792D 650C C69B BE4C 83B6 3A8F -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv