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 s7S8d7Af002582 for ; Thu, 28 Aug 2014 04:39:12 -0400 (EDT) Received: from serenity.local (serenity [192.168.0.10]) by firefly.ecentrum.hu (Postfix) with ESMTPSA id EAB9FDE233 for ; Thu, 28 Aug 2014 10:39:01 +0200 (CEST) Date: Thu, 28 Aug 2014 10:39:00 +0200 From: =?iso-8859-1?Q?L=C9VAI_D=E1niel?= To: discuss@mdocml.bsd.lv Subject: Re: "cannot parse date" for a seemingly valid .Dd parameter Message-ID: <20140828083900.GM29425@serenity.local> References: <20140827145844.GI29425@serenity.local> <53FDF43F.3060001@bsd.lv> <20140827151513.GJ29425@serenity.local> <20140828004342.GF912@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: <20140828004342.GF912@iris.usta.de> User-Agent: Mutt/1.5.22hg (2013-10-16) On cs, aug 28, 2014 at 02:43:42 +0200, Ingo Schwarze wrote: > Hi Daniel, > > LÉVAI Dániel wrote on Wed, Aug 27, 2014 at 05:15:13PM +0200: > > > On sze, aug 27, 2014 at 17:07:43 +0200, Kristaps Dzonsons wrote: > > >> Is your locale set? This format works fine in HEAD, > >> both on OpenBSD and Linux (Debian testing). > > > Yes, that was my first suspicion: > > $ locale > > LANG=en_US.UTF-8 > > LC_CTYPE=hu_HU.UTF-8 > > LC_NUMERIC=hu_HU.UTF-8 > > LC_TIME=hu_HU.UTF-8 > > LC_COLLATE=hu_HU.UTF-8 > > LC_MONETARY=hu_HU.UTF-8 > > LC_MESSAGES=en_US.UTF-8 > > LC_PAPER=hu_HU.UTF-8 > > LC_NAME=hu_HU.UTF-8 > > LC_ADDRESS=hu_HU.UTF-8 > > LC_TELEPHONE=hu_HU.UTF-8 > > LC_MEASUREMENT=hu_HU.UTF-8 > > LC_IDENTIFICATION=hu_HU.UTF-8 > > LC_ALL= > > After some code reading and some experimentation, i'm still quite > unsure where the problem might lie, i fail to reproduce but need > additional information. Please apply the debugging patch appended > below (not intended for commit) to anoncvs HEAD, and run: > > $ ./configure > $ make With the cvs checkout, mandoc(1) accepts the given date for me too. 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" #define HAVE_DIRENT_NAMLEN 0 #define HAVE_FGETLN 0 #define HAVE_FTS 1 #define HAVE_GETSUBOPT 1 #define HAVE_MMAP 1 #define HAVE_REALLOCARRAY 0 #define HAVE_STRCASESTR 1 #define HAVE_STRLCAT 0 #define HAVE_STRLCPY 0 #define HAVE_STRPTIME 1 #define HAVE_STRSEP 1 #define HAVE_WCHAR 0 #define HAVE_SQLITE3 1 #define HAVE_SQLITE3_ERRSTR 1 #define HAVE_OHASH 0 #define HAVE_MANPATH 0 #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 extern char *fgetln(FILE *, size_t *); extern void *reallocarray(void *, size_t, size_t); extern size_t strlcat(char *, const char *, size_t); extern size_t strlcpy(char *, const char *, size_t); #endif /* MANDOC_CONFIG_H */ ===============8<=============== > Then please show me the output of the following sequence of commands: > > $ locale > $ ./mandoc -Wall test.1 > /dev/null > $ ./mandoc -Wall -Tlocale test.1 > /dev/null $ locale LANG=en_US.UTF-8 LC_CTYPE=hu_HU.UTF-8 LC_NUMERIC=hu_HU.UTF-8 LC_TIME=hu_HU.UTF-8 LC_COLLATE=hu_HU.UTF-8 LC_MONETARY=hu_HU.UTF-8 LC_MESSAGES=en_US.UTF-8 LC_PAPER=hu_HU.UTF-8 LC_NAME=hu_HU.UTF-8 LC_ADDRESS=hu_HU.UTF-8 LC_TELEPHONE=hu_HU.UTF-8 LC_MEASUREMENT=hu_HU.UTF-8 LC_IDENTIFICATION=hu_HU.UTF-8 LC_ALL= $ ./mandoc -Wall test.1 > /dev/null main: LC_TIME = C a2time: LC_TIME = C a2time: calling strptime() a2time: LC_TIME = C a2time: calling strptime() a2time: LC_TIME = C a2time: calling strptime() $ ./mandoc -Wall -Tlocale test.1 > /dev/null main: LC_TIME = C a2time: LC_TIME = C a2time: calling strptime() a2time: LC_TIME = C a2time: calling strptime() a2time: LC_TIME = C a2time: calling strptime() > > with a suitable file test.1 exhibiting the problem. Here is a simple test file: ===============8<=============== .Dd August 27, 2014 .Dt TITLE 1 .Os .Sh NAME .Nd description ===============8<=============== TBH, I'm a bit confused. You see, I've used 1.12.3 before, and I've just upgraded to 1.13.1 recently. And because 1.12.3 did not have a ./configure script, furthermore with 1.13.1 I was not supposed to run ./configure directly, it seems to me, something has changed throughout the development that it seems has been fixed in HEAD, but exists (for me) in 1.13.1. Does this make sense? 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