GNU bug report logs - #4417
23.1.50; vc-hg is broken in non-English locales

Previous Next

Package: emacs;

Reported by: Sven Joachim <svenjoac <at> gmx.de>

Date: Sat, 12 Sep 2009 08:15:03 UTC

Severity: normal

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 4417 <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Dan Nicolaescu <dann <at> ics.uci.edu>
To: Sven Joachim <svenjoac <at> gmx.de>
Cc: 4417 <at> debbugs.gnu.org
Subject: Re: bug#4417: 23.1.50; vc-hg is broken in non-English locales
Date: Mon, 14 Dec 2009 09:12:18 -0800 (PST)
Sven Joachim <svenjoac <at> gmx.de> writes:

  > When opening a file in a mercurial-controlled directory, the modeline
  > shows "Hg-0" instead of the revision number in my de_DE.UTF-8 locale.
  > Moreover, after pressing "C-x v l", the *vc-change-log* buffer is
  > unfontified, and standard keys (d, f) do not work there, because hg's
  > output is in German:
  > 
  > ,----
  > | Änderung:        1587:1cdfa7c5503e
  > | Vorgänger:       1585:ef75fa728cca
  > | Nutzer:          Daniel Burrows <dburrows <at> debian.org>
  > | Datum:           Sun Jul 20 12:31:09 2008 -0700
  > | Zusammenfassung: Document how aptitude handles double-quotes.
  > `----
  > 
  > Setting LANG to C works around the problems.  For the reference, this is
  > my mercurial version:
  > 
  > ,----
  > | % hg --version
  > | Mercurial Distributed SCM (version 1.3.1)
  > `----
  > 
  > In GNU Emacs 23.1.50.6 (i486-pc-linux-gnu, GTK+ Version 2.16.6)
  >  of 2009-09-12 on turtle
  > Windowing system distributor `The X.Org Foundation', version 11.0.10603000
  > configured using `configure  '--build=i486-linux-gnu' 'build_alias=i486-linux-gnu' 'CFLAGS=-DGTK_DISABLE_DEPRECATED -g -O2''

I still cannot reproduce this... but it's not unreasonable that it
happens.

The "Hg-0" problem happens because vc-hg parses the "hg log" output so
that it can get the version number to display in the modeline (in
`vc-hg-working-revision').
I'll check in a fix shortly.

For the C-x v l problem, would it be acceptable for vc-hg to force the
language to be C?  If not, then someone would have to write regexps that
match the  "hg log" entries in any language.



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

Previous Next


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