[tex-live] TL2018: UTF-8 characters in file names with pdflatex

TANAKA Takuji ttk at t-lab.opal.ne.jp
Wed Jul 25 16:35:20 CEST 2018


Hi,

In TeX Live 2018/W32TeX,
Akira-san and I have implemented a function which treat UTF-8 on the console of Windows.
If you set a option "command_line_encoding=utf-8" in your texmf.cnf,
current version (since 2018/06/11) will accept utf-8 strings.
I expect following examples will work:

     pdflatex DieÜbung.tex

and

     pdflatex -file-line-error -interaction=nonstopmode "\input{\detokenize{DieÜbung.tex}}"


In my environment (W32TeX, LaTeX2e <2018-04-01> patch level 5),
the following test case runs correctly.

=====
% -*- coding: utf-8 -*-
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}

\begin{document}
Happy \TeX-ing!!

\typeout{\detokenize{Schön}}

%%%
%%% locale: UTF-8
%%% ö : U+00F6, UTF-8 0xC3 0xB6
\input{\detokenize{schön.tex}}
%\include{\detokenize{schön}}%  Files schön.tex, schön.aux must be read. However, it fails to read *.aux.
\includegraphics[width=30mm,bb=0 0 550 568]{\detokenize{schön.jpg}}
\includegraphics[width=30mm,bb=0 0 550 568]{\detokenize{schön.png}}
\includegraphics[width=30mm,bb=0 0 550 568]{\detokenize{schön.pdf}}

\end{document}
=====

Best,
Takuji Tanaka

On 2018/07/25 16:07, Dr. Werner Fink wrote:
> Hi,
> 
> I've several reports about not working UTF-8 characters in file names.
> 
> That is
> 
>    pdflatex DieÜbung.tex
> 
> works but
> 
>    pdflatex -file-line-error -interaction=nonstopmode "\input DieÜbung.tex"
> 
> does not.  As the last line is common used by texi tools and also by
> GNU Emacs AucTex this cause bug reports.  How to (re)enable high bit and
> multi byte character support in the (pdf)(La)Tex engines?  As on older
> TeXLive installation this works flawless.
> 
> Werner
> 



More information about the tex-live mailing list