From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailout.scc.kit.edu (mailout.scc.kit.edu [129.13.185.202]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id s7SHaKtG026807 for ; Thu, 28 Aug 2014 13:36:23 -0400 (EDT) Received: from hekate.usta.de (asta-nat.asta.uni-karlsruhe.de [172.22.63.82]) by scc-mailout-02.scc.kit.edu with esmtp (Exim 4.72 #1) id 1XN3cH-0007E6-RD; Thu, 28 Aug 2014 19:36:09 +0200 Received: from donnerwolke.usta.de ([172.24.96.3]) by hekate.usta.de with esmtp (Exim 4.77) (envelope-from ) id 1XN3cH-0005f2-Pg; Thu, 28 Aug 2014 19:36:09 +0200 Received: from iris.usta.de ([172.24.96.5] helo=usta.de) by donnerwolke.usta.de with esmtp (Exim 4.72) (envelope-from ) id 1XN3cH-0003fv-Ny; Thu, 28 Aug 2014 19:36:09 +0200 Received: from schwarze by usta.de with local (Exim 4.77) (envelope-from ) id 1XN3bX-0000dP-8z; Thu, 28 Aug 2014 19:35:23 +0200 Date: Thu, 28 Aug 2014 19:35:22 +0200 From: Ingo Schwarze To: =?iso-8859-1?Q?L=C9VAI_D=E1niel?= Cc: discuss@mdocml.bsd.lv Subject: Re: "cannot parse date" for a seemingly valid .Dd parameter Message-ID: <20140828173522.GT912@iris.usta.de> 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> 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: <20140828163215.GN29425@serenity.local> User-Agent: Mutt/1.5.21 (2010-09-15) 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? Can you show the output of: $ manpath $ which manpath $ man -w manpath $ ls -ald /etc/man* $ man -w man.conf $ man -V > $ ./mandoc -Wall -Tlocale test.1 > /dev/null [...] > ascii_init: LC_TIME = hu_HU.UTF-8 Good. > And my new config.h: [...] > #define HAVE_WCHAR 1 Good. So even though we haven't found your bug yet, your report already resulted in one useful bugfix. > "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 And then we need the usual sequence of commands again... Yours, Ingo Index: main.c =================================================================== RCS file: /cvs/mdocml/main.c,v retrieving revision 1.177 diff -u -p -r1.177 main.c --- main.c 21 Jun 2014 22:24:01 -0000 1.177 +++ main.c 28 Aug 2014 17:33:02 -0000 @@ -21,6 +21,7 @@ #endif #include +#include #include #include #include @@ -89,6 +90,9 @@ main(int argc, char *argv[]) int options; enum mandoclevel rc; char *defos; + + fprintf(stderr, "main: LC_TIME = %s\n", + setlocale(LC_TIME, NULL)); progname = strrchr(argv[0], '/'); if (progname == NULL) Index: mandoc.c =================================================================== RCS file: /cvs/mdocml/mandoc.c,v retrieving revision 1.83 diff -u -p -r1.83 mandoc.c --- mandoc.c 6 Jul 2014 19:09:00 -0000 1.83 +++ mandoc.c 28 Aug 2014 17:33:02 -0000 @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -456,8 +457,11 @@ a2time(time_t *t, const char *fmt, const memset(&tm, 0, sizeof(struct tm)); + fprintf(stderr, "a2time: LC_TIME = %s\n", + setlocale(LC_TIME, NULL)); pp = NULL; #ifdef HAVE_STRPTIME + fprintf(stderr, "a2time: calling strptime()\n"); pp = strptime(p, fmt, &tm); #endif if (NULL != pp && '\0' == *pp) { Index: term_ascii.c =================================================================== RCS file: /cvs/mdocml/term_ascii.c,v retrieving revision 1.27 diff -u -p -r1.27 term_ascii.c --- term_ascii.c 1 Aug 2014 19:25:52 -0000 1.27 +++ term_ascii.c 28 Aug 2014 17:33:02 -0000 @@ -94,9 +94,13 @@ ascii_init(enum termenc enc, char *outop #ifdef USE_WCHAR if (TERMENC_ASCII != enc) { + fprintf(stderr, "ascii_init: LC_TIME = %s\n", + setlocale(LC_TIME, NULL)); v = TERMENC_LOCALE == enc ? setlocale(LC_ALL, "") : setlocale(LC_CTYPE, "en_US.UTF-8"); + fprintf(stderr, "ascii_init: LC_TIME = %s\n", + setlocale(LC_TIME, NULL)); if (NULL != v && MB_CUR_MAX > 1) { p->enc = enc; p->advance = locale_advance; -- To unsubscribe send an email to discuss+unsubscribe@mdocml.bsd.lv