#935814 lyx unable produce pdf if the document path contains cyrillic symbols

Package:
lyx
Source:
lyx
Description:
document processor
Submitter:
"andreas.al"
Date:
2023-04-05 15:51:03 UTC
Severity:
normal
Tags:
#935814#5
Date:
2019-08-26 13:48:21 UTC
From:
To:
Dear Maintainer,

with the file
/home/user/f/1.lyx

LyX works fine, but if i rename the dir to cyrillic:

/home/user/ф/1.lyx

LyX becomes incapable to produce pdf output,
it generates error messages with
"missing \begin{document}".

#935814#10
Date:
2020-01-06 10:19:26 UTC
From:
To:
Linux tp 5.3.0-3-amd64 #1 SMP Debian 5.3.15-1 (2019-12-07) x86_64 GNU/Linux


LyX 2.3.3 (2019-06-10)
Configuration
   Host type:               x86_64-pc-linux-gnu
   Special build flags:      build=release std-regex warnings use-enchant
   Bundled libraries:       (none)
   C++ Compiler:            g++ (9)
   C++ Compiler flags:       -Wall -Wextra -fPIC -O2 -std=c++14
   C++ Compiler user flags:  -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++14
-g -O2
-fdebug-prefix-map=/build/lyx-hqFnMe/lyx-2.3.3=. -fstack-protector-strong -
Wformat -Werror=format-security -fPIC
   Linker flags:
   Linker user flags:       -Wl,-z,defs -Wl,--as-needed -Wl,-z,relro
-Wl,-z,now
   Qt Frontend:
       Qt version:	   5.12.5
   Packaging:               posix
   LyX binary dir:          /usr/bin
   LyX files dir:           /usr/share/lyx

#935814#15
Date:
2020-01-23 07:36:35 UTC
From:
To:
Dear Maintainer,
this bug is still actual in lyx (version 2.3.3-3) in debian unstable

#935814#20
Date:
2020-04-04 15:31:13 UTC
From:
To:
I'm facing the same problem on Debian 10 Buster with lyx 2.3.2 and
french accented characters :

- if the file path contains french accented characters, export to PDF
(pdflatex) fails with :

**********

Error message ------------------------ Package inputenc Error: Invalid
UTF-8 byte sequence Latex Error: MIssing \begin{document}. Package
inputenc Error: Invalid UTF-8 byte sequence.

Description --------------------

The document does not appear to be in UTF-8 encoding.

Try adding \UseRawInputEncoding as the first line of the file

or specify an encoding such as \usepackage [latin1]{inputenc}

in the document preamble.

Alternatively, save the file in UTF-8 using your editor or another tool

**********

The 3 above proposed solutions don't work.

The problem does not appear with every document classes, only with some
of them like all koma-script classes, while there's no problem with all
Standard classes.

I'm not sure this bug stays in lyx package, maybe in some texlive
package like texlive-binaries, but I don't know enough about LaTeX to be
sure...

Thanks for caring about that bug.

#935814#25
Date:
2020-05-14 13:54:34 UTC
From:
To:
I've just stumbled over this after an upgrade to buster, and can provide
an additional datum that can also be used as a workaround:

While direct export to PDF via pdflatex is broken, the resulting TeX
file is fine. That means that you can export the LyX file to LaTeX
(pdflatex), and then from the command line invoke pdflatex on the file
to obtain a PDF.

(And to no surprise, it also affects german Umlauts).

Kind regards
chrysn

#935814#30
Date:
2020-12-08 10:54:36 UTC
From:
To:
Can you give it a try in unstable?

The lyx bug in question is here:
https://www.lyx.org/trac/ticket/11146

Note however that some folks still report problems so we need more
feedback on this:
https://www.lyx.org/trac/ticket/11940


Note that in this bug underlying LaTeX version matters, so please
report it together with lyx version.

Thanks,
Pavel

#935814#33
Date:
2020-12-08 10:54:36 UTC
From:
To:
Can you give it a try in unstable?

The lyx bug in question is here:
https://www.lyx.org/trac/ticket/11146

Note however that some folks still report problems so we need more
feedback on this:
https://www.lyx.org/trac/ticket/11940


Note that in this bug underlying LaTeX version matters, so please
report it together with lyx version.

Thanks,
Pavel

#935814#42
Date:
2020-12-09 11:41:40 UTC
From:
To:
notfound 935814 2.3.6-1
thanks

Works for me with unstable, tested with German umlauts.

Thanks for the update
Christian

#935814#47
Date:
2020-12-09 11:50:59 UTC
From:
To:
Reading up on the linked "some folks still report" issue, I've repeated
the test with the Emoji character representing the German test word (not
repeated here for propriety; any emoji would do as they're all outside
the BMP).

Running the preview or export to pdf through pdflatex gave a warning:

(which only got fully readable when copy-pasted out; the symbol I tried
to avoid on screen looks like an empty rectangle), but still ran trough
correctly (ie. is not affected by the bug in question).

BR
Christian

#935814#54
Date:
2023-04-05 15:36:21 UTC
From:
To:
Closing, 2.3.6-1 with the fix is in the archive.