Dear Arash,
Thanks for the feedback, I reinstalled AUCTeX from the GIT repo, and after 
erasing my customization & relaunching Emacs it worked, as expected with MiKTeX.

Just out of curiosity : do you have any idea of what the root cause of this 
change of behaviour is ? What surprises me is not really that it does not work 
any longer with \input, but that for some reason it has ever worked, and that 
Indeed it used to work with it?

Anyway, the root cause of this sort of issues is that the TeX engines command 
line is based on some non POSIX command line format and some euristic, one 
cannot write something like

   pdflatex --tex \input --file liberté.tex

where the argument after --tex would be interpreted as TeX code, and the 
argument after --file would be interpreted as a filename (ie all characters 
getting catcode 11 or 12).

So, OK not having \input makes it work for the simple case of LaTeX 
compilation, but the command line euristic is broken when, say, the TeX4ht 
loader is used, which means that non ASCII letters in the input filename would 
be quite messy for TeX4ht to support.

I also remember similar discussion for texi2dvi, see this fix if you are 
interested:
http://svn.savannah.gnu.org/viewvc/texinfo/trunk/util/texi2dvi?r1=7199&r2=7200, 
the trick was made to support funny characters like ~ in filenames while 
continuing to have \input in the command line...


VBR,
  Vincent.
________________________________
De : auctex <[email protected]> de la part de Arash 
Esbati <[email protected]>
Envoyé : vendredi 28 septembre 2018 13:58
À : [email protected]
Cc : AUCTeX; MikTeX user group list
Objet : Re: [AUCTeX] Emacs + AUCTeX + cœur LaTeX + MiKTeX + Nom de fichier avec 
caractères accentués

[email protected] writes:

> Sans ma customisation d'AUCTeX ça fait cela:
>
> --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8----
> Running `LaTeX' on `liberté' with ``pdflatex  -file-line-error   
> -interaction=nonstopmode "\input" "liberté.tex"''
> This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6745 64-bit)
> entering extended mode
> LaTeX2e <2018-04-01> patch level 5
> ???:0: I can't find file `libert'.
> <to be read again>
>                    \global
> <*> \input liberté
>                    .tex
> Please type another input file name
> ???:0: Emergency stop
> ???:0:  ==> Fatal error occurred, no output PDF file produced!
> Transcript written on texput.log.
>
> TeX Output exited abnormally with code 1 at Fri Sep 28 06:34:53
> --8<----8<----8<----8<----8<--  end  -->8---->8---->8---->8---->8----

Hi Vincent,

latest development version of AUCTeX handles file names with non-ascii
characters correctly.  For details, see this change[1].

Compiling a file `liberté.tex' and hitting `C-c C-l' shows this for me:

--8<---------------cut here---------------start------------->8---
Running `LaTeX' on `liberté' with ``pdflatex  -file-line-error   
-interaction=nonstopmode "liberté.tex"''
This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) 
(preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
(./liberté.tex
LaTeX2e <2018-04-01> patch level 5
...
Transcript written on liberté.log.
--8<---------------cut here---------------end--------------->8---

Note the missing \input <filename.tex>.  I'm using TeXlive, but this
shouldn't make a difference.

Best, Arash

Footnotes:
[1]  
http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=a8ea1273fd95da5702fe95ad3f41d151b621bc72


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex
_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to