On Thu, Sep 20, 2007 at 08:59:50AM +0100, José Matos wrote: > On Thursday 20 September 2007 00:22:36 Enrico Forestieri wrote: > > Using LyX 1.4, create a new file containing only a non-ascii character > > (à will do). Save and try to reopen it with 1.6 latest svn (there's no > > problem with 1.5). You can't. > > > > Traceback (most recent call last): > > File "/usr/local/src/lyx/lyx-1.6.0svn/lib/lyx2lyx/lyx2lyx", line 77, in ? > > doc = LyX.File(**options.__dict__) > > File "/usr/local/src/lyx/lyx-1.6.0svn/lib/lyx2lyx/LyX.py", line 615, in > > __init__ self.read() > > File "/usr/local/src/lyx/lyx-1.6.0svn/lib/lyx2lyx/LyX.py", line 290, in > > read line = self.input.readline().decode(self.encoding) > > File "encodings/utf_8.py", line 16, in decode > > UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: > > unexpected end of data > > Error: Conversion script failed > > ---------------------------------------- > > /home/ef/newfile1.lyx is from a different version of LyX, but the lyx2lyx > > script failed to convert it. > > Could you please send an example file?
Try the attached. -- Enrico
#LyX 1.4.5 created this file. For more info see http://www.lyx.org/ \lyxformat 245 \begin_document \begin_header \textclass article \language english \inputencoding auto \fontscheme default \graphics default \paperfontsize default \papersize default \use_geometry false \use_amsmath 1 \cite_engine basic \use_bibtopic false \paperorientation portrait \secnumdepth 3 \tocdepth 3 \paragraph_separation indent \defskip medskip \quotes_language english \papercolumns 1 \papersides 1 \paperpagestyle default \tracking_changes false \output_changes false \end_header \begin_body \begin_layout Standard à \end_layout \end_body \end_document