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

Scott Kostyshak skostysh at lyx.org
Mon Dec 9 00:26:09 UTC 2019


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: child_of_mwe.lyx
Type: application/x-lyx
Size: 1757 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191208/631cdac8/attachment.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mwe.lyx
Type: application/x-lyx
Size: 1859 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191208/631cdac8/attachment-0001.lyx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-crash-due-to-encoding-issues-with-child-doc.patch
Type: text/x-diff
Size: 1523 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191208/631cdac8/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20191208/631cdac8/attachment.asc>


More information about the lyx-devel mailing list