|
Boost Users : |
Subject: Re: [Boost-users] [spirit::qi] assertion during parsing
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-10-19 21:57:41
On 10/20/10 12:54 AM, Ovanes Markarian wrote:
> Hello *,
>
> I have a strange problem. When parsing some output boost::spirit::qi
> parser aborts the application stating the following error message:
> /local/include/boost/spirit/home/support/char_encoding/ascii.hpp:256:
> static int boost::spirit::char_encoding::ascii::isspace(int): Assertion
> `isascii_(ch)' failed.
>
> Indeed my input sequence is:
> ~B"þ¯Þº~N
>
> But is it really a reason to assert the parser and crash the app? This
> input would not match my grammar, so from my point of view (as library
> user) it is just fine: not to match the input, without any assertions.
> And I should be able to decide what to do next.
>
> I use boost 1.44 with gcc (GCC) 3.4.6 20060404 (Red Hat 3.4.6-11)
There's a long thread about that. Long story short: just use
iso8859_1 or standard.
Regards,
-- Joel de Guzman http://www.boostpro.com http://spirit.sf.net
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net