2015-06-10 10:33 GMT+02:00 Enrico Forestieri <for...@lyx.org>:

> When I load your example document with lyx 2.1.3 and try to export it
> to the 2.0 format I get the following output:
>
> Traceback (most recent call last):
>   File "/opt/share/lyx/lyx2lyx/lyx2lyx", line 86, in <module>
>     main()
>   File "/opt/share/lyx/lyx2lyx/lyx2lyx", line 79, in main
>     doc = LyX.File(**options.__dict__)
>   File "/opt/share/lyx/lyx2lyx/LyX.py", line 714, in __init__
>     self.read()
>   File "/opt/share/lyx/lyx2lyx/LyX.py", line 345, in read
>     line = self.input.readline().decode(self.encoding)
>   File "/usr/local/lib/python2.7/encodings/utf_8.py", line 16, in decode
>     return codecs.utf_8_decode(input, errors, True)
> UnicodeDecodeError: 'utf8' codec can't decode byte 0xfb in position 0:
> invalid start byte
> support/Systemcall.cpp (292): Systemcall: 'python -tt
> "/opt/share/lyx/lyx2lyx/lyx2lyx" -t 413 "mwe.lyx"' finished with exit code 1
> Error: Cannot convert file
> ----------------------------------------
> An error occurred while running:
> python -tt "/opt/share/lyx/lyx2lyx/lyx2lyx" -t 413 "mwe.lyx" > "mwe.20.lyx"


And if you open the file with a editor, you will see that its encoding is
scrambled.

So the question is: how has this file been produced?

Jürgen

Reply via email to