GNU bug report logs - #5279
23.1; VC: should set LC_MESSAGES to C (with patch)

Previous Next

Package: emacs;

Reported by: Frédéric Perrin <frederic.perrin <at> resel.fr>

Date: Tue, 6 Oct 2009 18:55:07 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 5279 in the body.
You can then email your comments to 5279 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, svenjoac <at> gmx.de, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5284; Package emacs. (Wed, 09 Dec 2009 09:45:06 GMT) Full text and rfc822 format available.

Message #3 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Frédéric Perrin <frederic.perrin <at> resel.fr>
To: bug-gnu-emacs <at> gnu.org
Subject: bug#5279: 23.1; VC: should set LC_MESSAGES to C (with patch)
Date: Mon, 28 Dec 2009 02:28:44 +0100
Hello,

I'm using emacs with LANG=fr_FR.UTF-8. When using C-x v + (`vc-update')
on a file versionned with SVN, emacs barfs saying it can't parse the
output from "svn update". Indeed, SVN said "À la révision 123" whereas
"At revision 123" was expected. The following patch adds "LC_MESSAGES=C"
to process-environment before calling external tools; this solves the
problem for my case.

--- /root/backups/!usr!share!emacs!23.1!lisp!vc-dispatcher.el.gz.~1~
+++ /usr/share/emacs/23.1/lisp/vc-dispatcher.el.gz
@@ -318,11 +318,14 @@
 	  (setq squeezed (nconc squeezed files)))
 	(let ((exec-path (append vc-path exec-path))
 	      ;; Add vc-path to PATH for the execution of this command.
+	      ;; Also, since some functions need to parse the output from
+	      ;; external commands, set LC_MESSAGES to C.
 	      (process-environment
-	       (cons (concat "PATH=" (getenv "PATH")
-			     path-separator
-			     (mapconcat 'identity vc-path path-separator))
-		     process-environment))
+	       (append (list (concat "PATH=" (getenv "PATH")
+				     path-separator
+				     (mapconcat 'identity vc-path path-separator))
+			     "LC_MESSAGES=C")
+		       process-environment))
 	      (w32-quote-process-args t))
 	  (if (eq okstatus 'async)
 	      ;; Run asynchronously.



In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5)
 of 2009-07-31 on shirley.hoetzel.info
Windowing system distributor `The X.Org Foundation', version 11.0.10703901
configured using `configure  '--prefix=/usr' '--sysconfdir=/etc' '--libexecdir=/usr/lib' '--localstatedir=/var' '--mandir=/usr/share/man' '--without-sound' '-with-x-toolkit=gtk' 'CFLAGS=-march=i686 -mtune=generic -O2 -pipe''


Added tag(s) patch. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 07 Jan 2010 21:47:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5279; Package emacs. (Sat, 16 Jan 2010 21:40:03 GMT) Full text and rfc822 format available.

Message #8 received at 5279 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Frédéric Perrin <frederic.perrin <at> resel.fr>
Cc: 5279 <at> debbugs.gnu.org
Subject: Re: bug#5279: 23.1; VC: should set LC_MESSAGES to C (with patch)
Date: Sat, 16 Jan 2010 16:39:15 -0500
> I'm using emacs with LANG=fr_FR.UTF-8. When using C-x v +
> (`vc-update') on a file versionned with SVN, emacs barfs saying it
> can't parse the output from "svn update". Indeed, SVN said "À la
> révision 123" whereas "At revision 123" was expected. The following
> patch adds "LC_MESSAGES=C" to process-environment before calling
> external tools; this solves the problem for my case.

Thanks, the patch looks good.  I've checked it into the Emacs
repository.




bug closed, send any further explanations to Frédéric Perrin <frederic.perrin <at> resel.fr> Request was from Chong Yidong <cyd <at> stupidchicken.com> to control <at> debbugs.gnu.org. (Sat, 16 Jan 2010 21:40:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 14 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 130 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.