From: Phil Pennock <zsh-workers+phil.pennock@spodhuis.org>
To: "François Gannaz" <francois.gannaz@free.fr>
Cc: zsh-workers@zsh.org
Subject: Re: vcs_info and locales
Date: Sun, 25 Apr 2010 17:29:37 -0700 [thread overview]
Message-ID: <20100426002937.GA67488@redoubt.spodhuis.org> (raw)
In-Reply-To: <20100425210922.13596c4f@coriolan>
On 2010-04-25 at 21:09 +0200, François Gannaz wrote:
> Le 2010-04-25, Phil Pennock <zsh-workers+phil.pennock@spodhuis.org> a écrit :
> > On 2010-04-25 at 10:38 +0200, Frank Terbeck wrote:
> > > Anyway, could you try the following patch for the locale problem? I
> > > think it should solve the issue once and for all.
> >
> > I have one concern, which leads to the question: is it really necessary
> > to set LC_ALL instead of LC_MESSAGES?
>
> Yes it is. I used LC_ALL here because that was the only one that made "svn
> info" switch to English when default locale is set to "fr_FR.utf8".
In that case, you already had LC_ALL set, which is why part of my
proposed solution was to unset it.
I've just tested, and svn behaves as I expect for a locale-aware app:
LANG is a default, which provides implicit values for LC_<foo> where foo
is not ALL. It's overriden by each LC_<foo> if set. All of those are
overriden by LC_ALL.
-Phil
% locale
LANG=
LC_CTYPE=en_US.UTF-8
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
% svn info | head -3
Path: .
URL: https://svn.spodhuis.org/ksvn/pdp-dotconf/etc
Repository Root: https://svn.spodhuis.org/ksvn/pdp-dotconf
svn: Write error: Broken pipe
% export LANG=fr_FR.UTF-8
% svn info | head -3
Chemin : .
URL : https://svn.spodhuis.org/ksvn/pdp-dotconf/etc
Racine du dépôt : https://svn.spodhuis.org/ksvn/pdp-dotconf
svn: Erreur d'écriture: Broken pipe
% export LC_MESSAGES=C
% locale
LANG=fr_FR.UTF-8
LC_CTYPE=en_US.UTF-8
LC_COLLATE="fr_FR.UTF-8"
LC_TIME="fr_FR.UTF-8"
LC_NUMERIC="fr_FR.UTF-8"
LC_MONETARY="fr_FR.UTF-8"
LC_MESSAGES=C
LC_ALL=
% svn info | head -3
Path: .
URL: https://svn.spodhuis.org/ksvn/pdp-dotconf/etc
Repository Root: https://svn.spodhuis.org/ksvn/pdp-dotconf
svn: Write error: Broken pipe
next prev parent reply other threads:[~2010-04-26 0:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-24 21:40 François Gannaz
2010-04-25 8:38 ` Frank Terbeck
2010-04-25 10:36 ` François Gannaz
2010-04-25 13:19 ` Phil Pennock
2010-04-25 14:09 ` Frank Terbeck
2010-04-25 14:29 ` Frank Terbeck
2010-05-19 10:07 ` Richard Hartmann
2010-05-19 11:50 ` François Gannaz
2010-05-19 12:03 ` Richard Hartmann
2010-04-25 19:09 ` François Gannaz
2010-04-26 0:29 ` Phil Pennock [this message]
2010-04-26 6:36 ` Frank Terbeck
2010-04-26 8:56 ` François Gannaz
2010-04-26 19:07 ` Frank Terbeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100426002937.GA67488@redoubt.spodhuis.org \
--to=zsh-workers+phil.pennock@spodhuis.org \
--cc=francois.gannaz@free.fr \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
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 NNTP newsgroup(s).