From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Perrin Newsgroups: gmane.emacs.bugs Subject: bug#5279: 23.1; VC: should set LC_MESSAGES to C (with patch) Date: Mon, 28 Dec 2009 02:28:44 +0100 Organization: =?UTF-8?Q?R=C3=A9seau?= des =?UTF-8?Q?=C3=89l=C3=A8ves?= Message-ID: <87iqbropir.fsf@resel.fr> Reply-To: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Perrin , 5279@debbugs.gnu.org NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1262232038 12433 80.91.229.12 (31 Dec 2009 04:00:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Dec 2009 04:00:38 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Dec 31 05:00:31 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NQCD8-0001aN-Fb for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 Dec 2009 05:00:30 +0100 Original-Received: from localhost ([127.0.0.1]:38584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQCD8-0004uP-VG for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Dec 2009 23:00:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NQAwC-0003De-8I for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2009 21:38:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NQAw3-0003Ca-9o for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2009 21:38:55 -0500 Original-Received: from [199.232.76.173] (port=51001 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NQAw3-0003CX-5v for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2009 21:38:47 -0500 Original-Received: from [140.186.70.43] (port=34186 helo=debbugs.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NQAw2-0000Ee-RC for bug-gnu-emacs@gnu.org; Wed, 30 Dec 2009 21:38:46 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NQAWA-0001Pa-6A; Wed, 30 Dec 2009 21:12:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Mail-Followup-To: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Perrin , 5279@debbugs.gnu.org Resent-From: =?UTF-8?Q?Fr=C3=A9d=C3=A9ric?= Perrin Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 Dec 2009 02:12:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: report 5279 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.12622255125377 (code B ref -1); Thu, 31 Dec 2009 02:12:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Dec 2009 02:11:52 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NQAVx-0001Ob-0v for submit@debbugs.gnu.org; Wed, 30 Dec 2009 21:11:51 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NP4QS-0003ef-0r for submit@debbugs.gnu.org; Sun, 27 Dec 2009 20:29:38 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:48585) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NP4QK-00014d-67 for submit@debbugs.gnu.org; Sun, 27 Dec 2009 20:29:30 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NP4QH-0005dJ-Gv for submit@debbugs.gnu.org; Sun, 27 Dec 2009 20:29:27 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:50823) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NP4QG-0005dD-UF for submit@debbugs.gnu.org; Sun, 27 Dec 2009 20:29:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NP4QG-0005af-0t for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2009 20:29:24 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NP4QA-0005TY-Ur for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2009 20:29:23 -0500 Original-Received: from [199.232.76.173] (port=39500 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NP4QA-0005TU-QH for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2009 20:29:18 -0500 Original-Received: from maisel-gw.enst-bretagne.fr ([192.44.76.8]:36396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NP4QA-0005c1-Lu for bug-gnu-emacs@gnu.org; Sun, 27 Dec 2009 20:29:19 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id E2B4E19845 for ; Mon, 28 Dec 2009 02:29:10 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at resel.fr Original-Received: from maisel-gw.enst-bretagne.fr ([127.0.0.1]) by localhost (mercure.adm.maisel.enst-bretagne.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FKeC9O-9CfPW for ; Mon, 28 Dec 2009 02:28:50 +0100 (CET) Original-Received: from girafe.maisel.enst-bretagne.fr (ADijon-154-1-31-159.w90-13.abo.wanadoo.fr [90.13.182.159]) (Authenticated sender: fperrin) by maisel-gw.enst-bretagne.fr (Postfix) with ESMTP id 1CE2F19846 for ; Mon, 28 Dec 2009 02:28:49 +0100 (CET) Original-Received: by girafe.maisel.enst-bretagne.fr (Postfix, from userid 1000) id A68E520019; Mon, 28 Dec 2009 02:28:44 +0100 (CET) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -6.6 (------) X-Mailman-Approved-At: Wed, 30 Dec 2009 21:11:24 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list X-Spam-Score: -6.6 (------) Resent-Date: Wed, 30 Dec 2009 21:12:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Mailman-Approved-At: Wed, 30 Dec 2009 23:00:01 -0500 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33814 Archived-At: Hello, I'm using emacs with LANG=3Dfr_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 "=C3=80 la r=C3=A9vision 123" wh= ereas "At revision 123" was expected. The following patch adds "LC_MESSAGES=3DC" 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=3D" (getenv "PATH") - path-separator - (mapconcat 'identity vc-path path-separator)) - process-environment)) + (append (list (concat "PATH=3D" (getenv "PATH") + path-separator + (mapconcat 'identity vc-path path-separator)) + "LC_MESSAGES=3DC") + 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=3D/usr' '--sysconfdir=3D/etc' '--lib= execdir=3D/usr/lib' '--localstatedir=3D/var' '--mandir=3D/usr/share/man' '-= -without-sound' '-with-x-toolkit=3Dgtk' 'CFLAGS=3D-march=3Di686 -mtune=3Dge= neric -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 Recent input: c r ( f i n d - b u f f=20 SPC " " f s h . c e C-e=20 ) C-x C-e =20 / d o n n e e s / s r c / f s h / C-e C-x C-e=20 C-x b C-x b v c - =20 =20 ( f i n d - b u f f e r - v i s i t i n g=20 SPC C-e ) C-x C-s C-M-x =20 C-M-x =20 C-e=20 C-x C-e C-x C-e C-x b f s C-x=20 v =3D q C-x o =20 =20 r C-x v =3D C-x o =20 o u=20 h SPC ! C-x C-s M-x e s l s =20 r m SPC f C-x b C-x v=20 =3D n k x v c - d p a r =20 - c C-x b d i f C-x b =20 B e u h - SPC - > SPC b o u h . C-c C-c=20 =20 =20 C-x b C-g C-x C-s C-x b=20 C-g C-g C-x v =3D n C-x o C-x b v c - p =20 C-x o C-_ C-_ C-_ =20 x r e p o r Recent messages: Saving file /donnees/src/fsh/fsh.c... Wrote /donnees/src/fsh/fsh.c Quit [2 times] Finding changes in /donnees/src/fsh/fsh.c...done Mark set Hunk already applied Undo! [2 times] undo-more: No further undo information Auto-saving...done Making completion list... --=20 Fred