GNU bug report logs -
#21387
24.3; ediff bug with french
Previous Next
Reported by: Mathieu Brisson <brissonmathieu <at> ovh.fr>
Date: Mon, 31 Aug 2015 15:37:01 UTC
Severity: minor
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
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Mathieu Brisson <brissonmathieu <at> ovh.fr> writes:
> ediff fails with the same symptom present in
> http://stackoverflow.com/questions/9242651/emacs-ediff-error-no-newline-at-end-of-file
> but in french. I assume it is a bug, and not a misconfiguration on my
> side.
Steps to reproduce:
echo -n foo > /tmp/foo1
echo bar > /tmp/foo2
LANGUAGE=de_DE src/emacs -Q /tmp/di.el
(ediff-files "/tmp/foo1" "/tmp/foo2")
Result:
[Message part 2 (image/png, inline)]
[Message part 3 (text/plain, inline)]
Well, we obviously can't add all the languages in the world to
`ediff-diff-ok-lines-regexp', but we can run diff in a known
environment.
Any comments? Is this the best way to do this sort of stuff? The
LOCALE/LANGUAGE/LC_* variables can be kinda confusing.
diff --git a/lisp/vc/ediff-diff.el b/lisp/vc/ediff-diff.el
index adb6ce8053..38c546729e 100644
--- a/lisp/vc/ediff-diff.el
+++ b/lisp/vc/ediff-diff.el
@@ -1146,7 +1146,10 @@ ediff-exec-process
(if (string-match "buffer" (symbol-name ediff-job-name))
ediff-coding-system-for-write
ediff-coding-system-for-read))
- args)
+ (process-environment
+ ;; Avoid localization of messages so we can parse the output.
+ (cons "LC_MESSAGES=C" process-environment))
+ args)
(setq args (append (split-string options)
(mapcar (lambda (file)
(when (stringp file)
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 3 years and 357 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.