# HG changeset patch # User Stefan Monnier # Date 1207189375 0 # Node ID eeb1bb8489e4d31a6efd6ba74103070acbb3c2b8 # Parent c505d070db068792f522b3373ec461a58c2d629d (vc-mtn-command): Avoid localization of messages. diff -r c505d070db06 -r eeb1bb8489e4 lisp/ChangeLog --- 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 + * 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. diff -r c505d070db06 -r eeb1bb8489e4 lisp/vc-mtn.el --- 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