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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 4417 in the body.
You can then email your comments to 4417 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#4417; Package emacs. (Sat, 12 Sep 2009 08:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
New bug report received and forwarded. Copy sent to svenjoac <at> gmx.de, Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Sat, 12 Sep 2009 08:15:03 GMT) Full text and rfc822 format available.

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

From: Sven Joachim <svenjoac <at> gmx.de>
To: emacs-pretest-bug <at> gnu.org
Subject: 23.1.50; vc-hg is broken in non-English locales
Date: Sat, 12 Sep 2009 10:06:28 +0200
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''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: C
  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: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Group

Minor modes in effect:
  gnus-undo-mode: t
  display-time-mode: t
  auto-image-file-mode: t
  show-paren-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
  temp-buffer-resize-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x d <M-backspace> <M-backspace> d e b <tab> a <M-backspace> 
<M-backspace> <M-backspace> a p t i <tab> <return> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <down> <down> <down> <down> <down> <down> <down> 
<down> <return> C-x v l M-x s e t e n v <return> L 
A N G <return> C <return> C-x o C-x k <return> <return> 
C-x c l C-x o C-x k <return> C-x o C-x v l C-x o C-z 
C-x 1 M-x g n u s <return> M-x r e p o <tab> r t - 
e m <tab> <return>

Recent messages:
Opening nnfolder server on archive...done
Reading active file from archive via nnfolder...done
Opening nnfolder server...done
No new newsgroups
Checking new news...
Opening nnfolder server on archive...done
Opening nntp server on news.gnus.org...done
Opening nntp server on news.eternal-september.org...done
Checking new news...done
Making completion list...

Load-path shadows:
None found.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Tue, 22 Sep 2009 18:20:07 GMT) Full text and rfc822 format available.

Message #8 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: Tue, 22 Sep 2009 11:14:39 -0700 (PDT)
Sven Joachim <svenjoac <at> gmx.de> writes:

  > 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)
  > `----

I have:
hg --version
Mercurial Distributed SCM (version 1.3)

  > 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.
  > `----

I can't reproduce this, doing:

env LANG=de_DE.UTF-8 hg log

does not print German headings.

so it looks like this might be a bug in 1.3.1 or maybe in your
installation.  Can you please check?



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Tue, 22 Sep 2009 18:55:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Tue, 22 Sep 2009 18:55:06 GMT) Full text and rfc822 format available.

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

From: Sven Joachim <svenjoac <at> gmx.de>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
Cc: 4417 <at> debbugs.gnu.org
Subject: Re: bug#4417: 23.1.50; vc-hg is broken in non-English locales
Date: Tue, 22 Sep 2009 20:48:34 +0200
On 2009-09-22 20:14 +0200, Dan Nicolaescu wrote:

> Sven Joachim <svenjoac <at> gmx.de> writes:
>
>   > 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)
>   > `----
>
> I have:
> hg --version
> Mercurial Distributed SCM (version 1.3)

Should not matter, the German translation has apparently not been
updated between 1.3 and 1.3.1.

>   > 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.
>   > `----
>
> I can't reproduce this, doing:
>
> env LANG=de_DE.UTF-8 hg log
>
> does not print German headings.
>
> so it looks like this might be a bug in 1.3.1 or maybe in your
> installation.

Well, I would not call it a bug if a program puts out messages in a
language that it has been asked for.  I rather think it's a bug in your
installation that it does not do that. 

> Can you please check?

I'm not familiar with the gory details of Debian's Python setup.
The message catalog for mercurial is in a strange directory, namely
/usr/share/pyshared/mercurial/locale/de/LC_MESSAGES, rather than the
usual /usr/share/locale/de/LC_MESSAGES that all other programs use.

Sven



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Mon, 14 Dec 2009 17:20:03 GMT) Full text and rfc822 format available.

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.



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Mon, 14 Dec 2009 18:00:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 14 Dec 2009 18:00:04 GMT) Full text and rfc822 format available.

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

From: Sven Joachim <svenjoac <at> gmx.de>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
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 18:52:02 +0100
On 2009-12-14 18:12 +0100, Dan Nicolaescu wrote:

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

Thanks.

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

That latter approach might not scale too well, who knows in what
languages mercurial gets translated.  Forcing a C locale for hg's output
would be fine with me.

Sven



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Mon, 14 Dec 2009 18:30:05 GMT) Full text and rfc822 format available.

Message #24 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 10:23:15 -0800 (PST)
Sven Joachim <svenjoac <at> gmx.de> writes:

  > On 2009-12-14 18:12 +0100, Dan Nicolaescu wrote:
  > > 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.
  > 
  > That latter approach might not scale too well, who knows in what
  > languages mercurial gets translated.  Forcing a C locale for hg's output
  > would be fine with me.

Does C-x v g suffer from the same problem?
Do you know of anything else that might be affected?



Information forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#4417; Package emacs. (Mon, 14 Dec 2009 18:55:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sven Joachim <svenjoac <at> gmx.de>:
Extra info received and forwarded to list. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. (Mon, 14 Dec 2009 18:55:05 GMT) Full text and rfc822 format available.

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

From: Sven Joachim <svenjoac <at> gmx.de>
To: Dan Nicolaescu <dann <at> ics.uci.edu>
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 19:48:05 +0100
On 2009-12-14 19:23 +0100, Dan Nicolaescu wrote:

> Sven Joachim <svenjoac <at> gmx.de> writes:
>
>   > On 2009-12-14 18:12 +0100, Dan Nicolaescu wrote:
>   > > 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.
>   > 
>   > That latter approach might not scale too well, who knows in what
>   > languages mercurial gets translated.  Forcing a C locale for hg's output
>   > would be fine with me.
>
> Does C-x v g suffer from the same problem?

Not anymore since you fixed vc-hg-working-revision. :-)

> Do you know of anything else that might be affected?

Not offhand.

Cheers,
       Sven



Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 27 Jan 2010 18:39:02 GMT) Full text and rfc822 format available.

Notification sent to Sven Joachim <svenjoac <at> gmx.de>:
bug acknowledged by developer. (Wed, 27 Jan 2010 18:39:02 GMT) Full text and rfc822 format available.

Message #34 received at 4417-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 4417-done <at> debbugs.gnu.org
Subject: Re: bug#4417: vc-hg is broken in non-English locales
Date: Wed, 27 Jan 2010 13:38:21 -0500
It looks to me like this is done; but please reopen if it is not.




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

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.