GNU bug report logs -
#15803
default-file-name-coding-system: utf-8 better than latin-1 these days?
Previous Next
Reported by: Glenn Morris <rgm <at> gnu.org>
Date: Mon, 4 Nov 2013 18:46:01 UTC
Severity: normal
Tags: fixed
Found in version 24.3
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #54 received at 15803 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Another confusing data point. If I say "make" in the test directory, I
get:
foo 1: "\"/home/larsi/src/emacs/f\\363o/test/lisp/eshell/eshell-tests.elc\""
foo 2: "#(\"/home/larsi/src/emacs/fóo/test/lisp/eshell/eshell-tests.elcGvbK3T\" 0 65 (charset iso-8859-1))"
If I just say "make" in the main directory, I get this:
foo 1: "\"/home/larsi/src/emacs/f�o/lisp/dos-w32.elc\""
foo 2: "\"/home/larsi/src/emacs/fóo/lisp/dos-w32.elcXgukAl\""
Or, if that doesn't survive emailing, here's an umage:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Note -- no text properties, and not represented as "f\363o".
*scratches head*
So is this a problem with how ert calls the byte compiler after all?
This is with
diff --git a/lisp/emacs-lisp/bytecomp.el b/lisp/emacs-lisp/bytecomp.el
index 966990bac9..07448033ac 100644
--- a/lisp/emacs-lisp/bytecomp.el
+++ b/lisp/emacs-lisp/bytecomp.el
@@ -1990,6 +1990,7 @@ byte-compile-file
(with-current-buffer output-buffer
(goto-char (point-max))
(insert "\n") ; aaah, unix.
+ (message "foo 1: %S" (prin1-to-string (expand-file-name target-file)))
(if (file-writable-p target-file)
;; We must disable any code conversion here.
(progn
@@ -2007,6 +2008,7 @@ byte-compile-file
(cons (lambda () (ignore-errors
(delete-file tempfile)))
kill-emacs-hook)))
+ (message "foo 2: %S" (prin1-to-string tempfile))
(unless (= temp-modes desired-modes)
(set-file-modes tempfile desired-modes 'nofollow))
(write-region (point-min) (point-max) tempfile nil 1)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 256 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.