José Abílio Matos wrote: > On Tuesday, 7 March 2017 12.39.19 WET Enrico Forestieri wrote: >> > Is this a valid process that we should support? >> >> Given that lyx2lyx processes text files, taking into account that they >> may have a BOM is safer.
I agree. Some text editors decide to add a BOM to utf8 files, so if a user did some expert editing with a text editor this can easily happen. > OK. So I will try to solve this problem. > >> > If so the following patch fixes this for me, for both python 2 and 3. >> >> I think you can safely commit it. > > I send attached another fix that fixes the file as soon as it is read. I > am happier with this version. > > Again I tried with python2 and python3 and it works. :-) Looks fine to me. Georg