[LyX/master] Fix #11520 Wrong inpute encoding when master and child use different setting.

Kornel Benko kornel at lyx.org
Mon Dec 9 08:37:44 UTC 2019


Am Sun, 8 Dec 2019 19:26:09 -0500
schrieb Scott Kostyshak <skostysh at lyx.org>:

> On Mon, Mar 18, 2019 at 06:13:40PM +0100, Günter Milde wrote:
> > commit 553bebc3550f932ca3c25bbd4ae3905b60026b3c
> > Author: Günter Milde <milde at lyx.org>
> > Date:   Mon Mar 18 18:16:40 2019 +0100
> > 
> >     Fix #11520 Wrong inpute encoding when master and child use different setting.
> > ---  
> 
> I get a crash starting with this commit. To reproduce:
> 
>   1. Save both of the attached files of this email to the same directory.
>   2. In LyX, turn instant preview to "on" in Preferences.
>   3. Open mwe.lyx.
> 
> LyX gives a SIGSEGV on opening the file.
> 
> Attached is a patch. I don't know if it makes sense. It attempts to keep
> the desired behavior of 553bebc3 except when oldEnc is 0. Günter can you
> have a look?
> 
> Scott

Nice catch.

	Kornel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191209/2ff205f9/attachment.asc>


More information about the lyx-devel mailing list