Am Mittwoch, 18. Oktober 2006 16:19 schrieb Jean-Marc Lasgouttes:
> > "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
>
> Georg> Abdelrazak Younes wrote:
> >> And then in lyxlex_pimpl.C, line 76:
> >>
> >> lyx::docstring const LyXLex::Pimpl::getDocString() const {
> >> std::vector res = utf
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes:
Georg> Abdelrazak Younes wrote:
>> And then in lyxlex_pimpl.C, line 76:
>>
>> lyx::docstring const LyXLex::Pimpl::getDocString() const {
>> std::vector res = utf8_to_ucs4(buff);
>>
>> here buff is empty, hence the crash.
Georg> Thanks for
Georg Baum wrote:
Abdelrazak Younes wrote:
And then in lyxlex_pimpl.C, line 76:
lyx::docstring const LyXLex::Pimpl::getDocString() const
{
std::vector res = utf8_to_ucs4(buff);
here buff is empty, hence the crash.
Thanks for debugging. I don't understand LyXLex at all.
me neither...
Abde
Abdelrazak Younes wrote:
> And then in lyxlex_pimpl.C, line 76:
>
> lyx::docstring const LyXLex::Pimpl::getDocString() const
> {
> std::vector res = utf8_to_ucs4(buff);
>
> here buff is empty, hence the crash.
Thanks for debugging. I don't understand LyXLex at all. Is it normal for
buff to be e
Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Hello, I had a crash in utf8_to_ucs4() when loading a
Abdelrazak> document which had an empty inset apparently (Intro.lyx).
Abdelrazak> The following commit adds some sanity checks to unicode.C
Abdelrazak Younes wrote:
> You're right. It was in InsetCommandParam IIRC, I'll remove the check
> and see if I can reproduce it.
It is perfectly valid for a parameter of InsetCommandParams to be empty, so
utf8_to_ucs4() definitely needs to handle empty input. Nevertheless it
would be nice if you
Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Hello, I had a crash in utf8_to_ucs4() when loading a
Abdelrazak> document which had an empty inset apparently (Intro.lyx).
Abdelrazak> The following commit adds some sanity checks to unicode.C
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:
Abdelrazak> Hello, I had a crash in utf8_to_ucs4() when loading a
Abdelrazak> document which had an empty inset apparently (Intro.lyx).
Abdelrazak> The following commit adds some sanity checks to unicode.C.
It would be nice to kn
Hello,
I had a crash in utf8_to_ucs4() when loading a document which had an
empty inset apparently (Intro.lyx). The following commit adds some
sanity checks to unicode.C.
Abdel.
URL: http://www.lyx.org/trac/changeset/15362
Log:
add some sanity checks.
Modified:
lyx-devel/trunk/src/supp