On 9/05/2017 2:42 a.m., Scott Kostyshak wrote:
On Mon, May 08, 2017 at 06:39:38PM +1200, Andrew Parsloe wrote:
alpha1-1 installed on windows 7. I can't remember if preferences are
supposed to migrate on a major release. They didn't. I renamed my LyX2.2
folder LyX2.3 and then had to manually increment the format numbers of the
files in bind and ui.

Thanks for testing, Andrew. I forget whether we migrate preferences on
Windows.

For any Windows-related emails, you might want to CC Uwe since he
doesn't have time to read every message on the mailing list but he's
interested in the Windows-related ones. (I add him to CC this time).

If you do not manually increment the format numbers of the bind and ui
files, what error do you get?

Scott


The problem was with a customized copy of cua.bind in my LyX2.3/bind folder. prefs2prefs.py was stumbling on it. After much blundering about I found the problem was an encoding one. The customized cua.bind dates from many years ago and (according to my text editor) the encoding is ANSI rather utf8. prefs2prefs.py choked at

line 52 in read: lines = source.read().splitlines() or ['']

Python27/lib/codecs.py, line 314, in decode
        (result, consumed) = self._buffer_decode(data, self.errors, final)
LookupError: unknown error handler name 'surrogateescape'

I have updated the customized cua.bind, now encoded in utf8, and the problem has vanished.

Andrew

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Reply via email to