SIGSEGV if iconv error from local layout or module

Scott Kostyshak skostysh at lyx.org
Mon Apr 8 22:57:30 UTC 2024


If we have a UTF8 character in the user preamble, LyX gives a very
user-friendly warning if the document encoding is not UTF8.

However, if the same situation happens for the local layout (or in a
module), I get a SIGSEGV when compiling.

To reproduce, open the attached document and compile to PDF.

Note that the error goes away if the encoding is switched to UTF8.

I can reproduce on 2.3.x and current master.

Can anyone else reproduce?

Would it make sense to factor out the code that checks the preamble and
use this also for the local layout and included modules?

Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-layout-not-validated.23.lyx
Type: application/x-lyx
Size: 1890 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240408/6a5e2aae/attachment.lyx>
-------------- 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/20240408/6a5e2aae/attachment.asc>


More information about the lyx-devel mailing list