unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.1; VC: should set LC_MESSAGES to C (with patch)
@ 2009-12-28  1:28 Frédéric Perrin
  0 siblings, 0 replies; only message in thread
From: Frédéric Perrin @ 2009-12-28  1:28 UTC (permalink / raw)
  To: emacs-devel

Hello,

I'm resending this bug, because I didn't receive an ACK for it, and it
doesn't appear on debbugs.gnu.org nor on the archives for
bug-gnu-emacs@gnu.

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''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: fr_FR.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: C/l

Minor modes in effect:
  diff-auto-refine-mode: t
  shell-dirtrack-mode: t
  show-paren-mode: t
  global-hi-lock-mode: t
  hi-lock-mode: t
  iswitchb-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t

-- 
Fred




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-28  1:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-28  1:28 23.1; VC: should set LC_MESSAGES to C (with patch) Frédéric Perrin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).