zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: zsh-workers@zsh.org
Subject: Re: Subversion completion don't work with UTF8 (and other) file names
Date: Fri, 26 Apr 2013 14:39:21 +0200	[thread overview]
Message-ID: <20130426123921.GT16210@xvii.vinc17.org> (raw)
In-Reply-To: <CAMfFmgG7zQy=iAa5S8Bc2Uvio0DVpeUEnZMZAobbvNRASeb7HA@mail.gmail.com>

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 <vincent@vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


  reply	other threads:[~2013-04-26 12:47 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-26 11:51 Paul Romanchenko
2013-04-26 12:39 ` Vincent Lefevre [this message]
2013-04-26 14:44   ` Peter Stephenson
2013-04-26 15:35     ` Vincent Lefevre
2013-04-29  8:57       ` Peter Stephenson
2013-04-29 13:58         ` Bart Schaefer
2013-05-04  2:15         ` Oliver Kiddle
2013-05-04 13:23           ` Peter Stephenson
2013-05-07  7:38             ` Oliver Kiddle
2013-05-07  9:21               ` Peter Stephenson
2013-05-14 13:28                 ` Vincent Lefevre

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=20130426123921.GT16210@xvii.vinc17.org \
    --to=vincent@vinc17.net \
    --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).