From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5997 invoked by alias); 26 Apr 2010 00:29:43 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 27916 Received: (qmail 16262 invoked from network); 26 Apr 2010 00:29:41 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at spodhuis.org does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d200912; h=In-Reply-To:Content-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=iruyr1owjF5UULf0yuYxdQD9M4OR2RPaNYpnZPp9ceY=; b=jzFZIcsKXgY5PKUaZBMtqPSbjeTIbVkGhIN0AB3rHSC7UTT6vLOvLmkF1dnIkrHtx6zPHBjRj4M2MsHKnROVcLeEByoK931DpRs8WBMpNOPE24+9qfzo1Sgu5I38dKr1IqnH0gyqimae+U8517Ckd5FaoNFNeoGiNJwUkksmZ18=; Date: Sun, 25 Apr 2010 17:29:37 -0700 From: Phil Pennock To: =?utf-8?B?RnJhbsOnb2lz?= Gannaz Cc: zsh-workers@zsh.org Subject: Re: vcs_info and locales Message-ID: <20100426002937.GA67488@redoubt.spodhuis.org> Mail-Followup-To: =?utf-8?B?RnJhbsOnb2lz?= Gannaz , zsh-workers@zsh.org References: <20100424234017.776ae0ea@coriolan> <87aassncyk.fsf@ft.bewatermyfriend.org> <20100425131944.GA55789@redoubt.spodhuis.org> <20100425210922.13596c4f@coriolan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20100425210922.13596c4f@coriolan> On 2010-04-25 at 21:09 +0200, François Gannaz wrote: > Le 2010-04-25, Phil Pennock 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_ where foo is not ALL. It's overriden by each LC_ 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