Menu

#2620 xetex can't input files with BOM anymore

None
fixed
None
2017-08-11
2017-08-08
U_Fischer
No

xecyr.sty is a example of utf8-encoded file with a BOM. Using it together with xelatex:

\documentclass{article}
\usepackage{xecyr}

\begin{document}
abc
\end{document}

gives the error

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.1 ´╗┐
       % Modified from Evgenie Medvedev ...

I tested on a current miktex and also with miktex next.

pdflatex and lualatex have no problems with the BOM (they naturally choke over other things later).

Discussion

  • Christian Schenk

    • status: open --> fixed
    • assigned_to: Christian Schenk
     
  • Christian Schenk

    Thank you, I have fixed this.