lasgout...@lyx.org writes: > Author: lasgouttes > Date: Fri Apr 24 14:28:00 2009 > New Revision: 29392 > URL: http://www.lyx.org/trac/changeset/29392 > > Log: > Sometimes, iconv on windows returns -1, but sets errno to 0. I do not > know what this means, but tex2lyx did not like it at all.
Juergen, this should go to branch too. JMarc > > Modified: > lyx-devel/trunk/src/support/docstream.cpp > > Modified: lyx-devel/trunk/src/support/docstream.cpp > ============================================================================== > --- lyx-devel/trunk/src/support/docstream.cpp Thu Apr 23 16:10:01 2009 > (r29391) > +++ lyx-devel/trunk/src/support/docstream.cpp Fri Apr 24 14:28:00 2009 > (r29392) > @@ -281,6 +281,14 @@ > inbytesleft, to, outbytesleft); > if (converted == (size_t)(-1)) { > switch(errno) { > + case 0: > + // As strange as it may seem, this > + // does happen on windows when parsing > + // comments with accented chars in > + // tex2lyx. See the following thread > + // for details > + // > http://thread.gmane.org/gmane.editors.lyx.devel/117636 > + break; > case EINVAL: > case E2BIG: > return base::partial;