Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: > Jean-Marc Lasgouttes <lasgout...@lyx.org> writes: > >>> I'm not able to figure our why this bug happens (that tex2lyx no >>> longer reads the syntax.default file), but I can verify that when I >>> revert r28858 and recompile tex2lyx then it can again parse >>> formulas. >> >> I'll take another look. > > Could you tell me whether you can import a document with only a few > words but some accented? I want to check whether the problem is with the > idocstream.
OK Uwe (or anybody who sees the same problem under windows), could you try the following patch? I may have an idea of what is going on. JMarc
svndiff src/tex2lyx/ Index: src/tex2lyx/tex2lyx.cpp =================================================================== --- src/tex2lyx/tex2lyx.cpp (révision 29360) +++ src/tex2lyx/tex2lyx.cpp (copie de travail) @@ -202,7 +202,8 @@ void read_environment(Parser & p, string */ void read_syntaxfile(FileName const & file_name) { - ifdocstream is(file_name.toFilesystemEncoding().c_str()); + ifdocstream is; + is.open(file_name.toFilesystemEncoding().c_str()); if (!is.good()) { cerr << "Could not open syntax file \"" << file_name << "\" for reading." << endl;