Uwe Stöhr <uwesto...@web.de> writes: > The first error disappears when I delete the character "é" of the name > "André" in line 681 of syntax.default. Then tex2lyx again parses > formulas correctly.
If you keep the é, does the attached patch help? > But then I still get the second error message: > > Overwriting existing file C:/Documents and Settings/usti/My > Documents/testcase.lyx > Error 0 returned from iconv when converting from UTF-8 to UCS-4LE: No error > Converted input: > Stopped at: 0xc3 > Unconverted input: > Converted output: Very strange. I'll have to re-read the iconv docs. JMarc
svndiff src/tex2lyx/tex2lyx.cpp Index: src/tex2lyx/tex2lyx.cpp =================================================================== --- src/tex2lyx/tex2lyx.cpp (révision 29366) +++ src/tex2lyx/tex2lyx.cpp (copie de travail) @@ -202,7 +203,10 @@ void read_environment(Parser & p, string */ void read_syntaxfile(FileName const & file_name) { - ifdocstream is(file_name.toFilesystemEncoding().c_str()); + ifdocstream is; + // forbid buffering on this stream + is.rdbuf()->pubsetbuf(0,0); + is.open(file_name.toFilesystemEncoding().c_str()); if (!is.good()) { cerr << "Could not open syntax file \"" << file_name << "\" for reading." << endl;