From mboxrd@z Thu Jan 1 00:00:00 1970 X-Greylist: delayed 12750 seconds by postgrey-1.37 at hurricane; Sat, 07 Dec 2019 14:16:42 PST Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by hurricane.the-brannons.com (Postfix) with ESMTPS id AE4A7791CA for ; Sat, 7 Dec 2019 14:16:42 -0800 (PST) Received: by nautica.notk.org (Postfix, from userid 1001) id 1538FC009; Sat, 7 Dec 2019 23:16:41 +0100 (CET) Date: Sat, 7 Dec 2019 23:16:26 +0100 From: Dominique Martinet To: "alf.siciliano@gmail.com" Cc: edbrowse-dev@edbrowse.org Subject: Re: [edbrowse-dev] tidySetOptBool vs tidySetOptInt on debian Message-ID: <20191207221625.GA12745@nautica> References: <20191207171534.GA194728@toaster> <20191207184354.GA5418@nautica> <20191207200147.ca1a7b961f790d11feab8fe7@gmail.com> <20191207193433.GA15586@nautica> <20191207194928.GD194728@toaster> <20191207224543.ec830db69d404376505a33ea@gmail.com> X-BeenThere: edbrowse-dev@edbrowse.org List-Id: Edbrowse Development List MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20191207224543.ec830db69d404376505a33ea@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) alf.siciliano@gmail.com wrote on Sat, Dec 07, 2019: > On debian we have the same version of libtidy, but debian sid hasn't the last > version of edbrowse, so I' m using the old 3.7.5.1-1, if you have compiled > the last version we are tring a different version. > > Anyway, on FreeBSD, I have the last version release 3.7.6 (and git master), > if I change > from > tidyOptSetBool(tdoc, TidyStyleTags, no); > to > tidyOptSetInt(tdoc, TidyStyleTags, no); > > the runtime output is: > > ./edbrowse > .ebrc: unrecognized keyword linelength at line 49 > edbrowse ready > b www.google.com > 12613 > Assertion failed: (option_defs[ optId ].type == TidyInteger), function prvTidySetOptionInt, file /usr/ports/www/tidy-html5/work/tidy-html5-5.7.28/src/config.c, line 487. > Abort (core dumped) TidyStyleTags is a bool, no matter how you look at it, trying to change it to int without understanding what we are doing is not going to help. I tried rebuilding edbrowse on a debian sid and it works fine here, I think he either had old build artefact built with previous tidy version linked with a newer version -- tidy reordered the fields of the enum so the values will have changed. I think it is unrelated to the problem you had on FreeBSD anyway, as he says there is no libtidy-0.99 on his system. -- Dominique