Mercurial > emacs
changeset 93564:eeb1bb8489e4
(vc-mtn-command): Avoid localization of messages.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 03 Apr 2008 02:22:55 +0000 |
parents | c505d070db06 |
children | 622e5fddb043 |
files | lisp/ChangeLog lisp/vc-mtn.el |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Thu Apr 03 02:21:33 2008 +0000 +++ b/lisp/ChangeLog Thu Apr 03 02:22:55 2008 +0000 @@ -1,5 +1,7 @@ 2008-04-03 Stefan Monnier <monnier@iro.umontreal.ca> + * vc-mtn.el (vc-mtn-command): Avoid localization of messages. + * vc-bzr.el (vc-bzr-checkout): Simplify. * image-mode.el (image-mode-fit-frame): New command.
--- a/lisp/vc-mtn.el Thu Apr 03 02:21:33 2008 +0000 +++ b/lisp/vc-mtn.el Thu Apr 03 02:22:55 2008 +0000 @@ -67,7 +67,10 @@ (defun vc-mtn-command (buffer okstatus files &rest flags) "A wrapper around `vc-do-command' for use in vc-mtn.el." - (apply 'vc-do-command buffer okstatus vc-mtn-command files flags)) + (let ((process-environment + ;; Avoid localization of messages so we can parse the output. + (cons "LC_MESSAGES=C" process-environment))) + (apply 'vc-do-command buffer okstatus vc-mtn-command files flags))) (defun vc-mtn-state (file) ;; If `mtn' fails or returns status>0, or if the search files, just