From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24101 invoked by alias); 26 Apr 2013 12:47:49 -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: 31335 Received: (qmail 4203 invoked from network); 26 Apr 2013 12:47:45 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at vinc17.net does not designate permitted sender hosts) Date: Fri, 26 Apr 2013 14:39:21 +0200 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: Subversion completion don't work with UTF8 (and other) file names Message-ID: <20130426123921.GT16210@xvii.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Mailer-Info: http://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.21-6305-vl-r59709 (2013-04-16) On 2013-04-26 15:51:30 +0400, Paul Romanchenko wrote: > When trying to autocomplete svn operations in path containing UTF8 file > names, the following error occurs: > > $ svn svn: E000022: Can't convert string from native encoding to 'UTF-8': > svn: E000022: /path/to/working/copy/2.?\208?\160... > > I suppose this is because of $(LC_ALL=C _call_program....) in _subversion > completion code. Since the error message is about native encoding (US-ASCII here, due to the LC_ALL=C) to UTF-8, it concerns a file that is in the repository with a non-ASCII filename (internal encoding is UTF-8). A solution might be to retrieve the computed LC_CTYPE with the "locale" command, then before executing svn, do the following: _ Unset LC_ALL _ Set LC_CTYPE to the locale determined above. _ Set every other LC_* and LANG environment variables to "C". -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)