Hello Nicolas, it's really strange. I've checked it another time some minutes ago and, on my machine, this works. I've used the following command to do the test : for emacs 25.3 #+begin_src sh emacs -Q -L lisp -L ~/.emacs.d/elpa-25/htmlize-20180412.1244 -l ~/.emacs.d/elpa-25/htmlize-20180412.1244/htmlize-autoloads.el testing/examples/test.org #+end_src
for Emacs 26.1 (934bb475b9) #+begin_src sh emacs -Q -L lisp -L ~/.emacs.d/elpa-25/htmlize-20180412.1244 -l ~/.emacs.d/elpa-25/htmlize-20180412.1244/htmlize-autoloads.el testing/examples/test.org #+end_src And I still obtain the expected results : see the text attached file (encoded in utf-8-unix).
TEST WITH DIFFERENT ENCODINGS. Pierre TÚchoueyres Table of Contents 1. Pierre TÚchoueyres 1 Pierre TÚchoueyres bad @echo off echo Hello Pierre T┌choueyres ± rem Local Variables: rem coding: cp850-dos rem mode: bat rem End: or (only without 0001-Manage-correctly-the-encoding-of-files-with-include-.patch applied) #!/bin/sh # -*- coding: iso-8859-15-unix -*- echo "Hello Pierre TÚchoueyres" # Local Variables: # coding: iso-8859-15-unix # End: and good ? @echo off echo Hello Pierre TÚchoueyres rem Local Variables: rem coding: cp850-dos rem mode: bat rem End: or #!/bin/sh # -*- coding: iso-8859-15-unix -*- echo "Hello Pierre TÚchoueyres" # Local Variables: # coding: iso-8859-15-unix # End: Org mode version 9.1.13 (release_9.1.13-763-gcd25c7 @ /home/ptechoueyres/Travail/VCS/emacs-org-mode/lisp/)
So I don't really understand what's appening. Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > pierre.techouey...@free.fr (Pierre Téchoueyres) writes: > >> I reattach the examples, but note that the cmd.txt or sh.txt extensions >> are only there to avoid my mail to be wiped out. > > I must be missing something. When I install both patches, and I export > your example to, e.g., UTF-8, I get the following document, where coding > systems are not resolved. > > 1 Pierre Téchoueyres > ════════════════════ > > bad > ┌──── > │ @echo off > │ > │ echo Hello Pierre T├Üchoueyres ├▒ > │ > │ rem Local Variables: > │ rem coding: cp850-dos > │ rem mode: bat > │ rem End: > └──── > or > ┌──── > │ #!/bin/sh # -*- coding: iso-8859-15-unix -*- > │ > │ echo "Hello Pierre Téchoueyres" > │ > │ # Local Variables: > │ # coding: iso-8859-15-unix > │ # End: > └──── > > and good ? > ┌──── > │ @echo off > │ > │ echo Hello Pierre TÃchoueyres ñ > │ > │ rem Local Variables: > │ rem coding: cp850-dos > │ rem mode: bat > │ rem End: > └──── > or > ┌──── > │ #!/bin/sh # -*- coding: iso-8859-15-unix -*- > │ > │ echo "Hello Pierre Téchoueyres" > │ > │ # Local Variables: > │ # coding: iso-8859-15-unix > │ # End: > └──── > > Regards, -- | Pierre Téchoueyres - Appt. 150 Bat. B | Tel : 05 56 42 53 22 Res. Le FLORE ___ | 09 51 40 74 43 32 rue Marcelin Berthelot ,,, | Port: 06 77 11 64 05 33200 CAUDERAN (o o) | mailto:pierre.techouey...@free.fr ---ooO-(_)-Ooo---