[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Filenames with non-ASCII characters

From: Rodrigo Montenegro <montenegro.r_at_gmail.com>
Date: Mon, 17 May 2010 12:58:51 -0300

The code is quite long because I test other stuff beyond the chars, but I
can show you an short example that give us the same effect:

#!/usr/bin/python
import sys
import os

def dump(msg):
   sys.stderr.write(str(msg) + '\n')

os.putenv('LANG','pt_BR.UTF8')

dump('รง')
sys.exit(1)
____________________________________________
Rodrigo Montenegro de Oliveira

On Mon, May 17, 2010 at 12:17, Ryan Schmidt <subversion-2010b_at_ryandesign.com
> wrote:

> On May 17, 2010, at 07:54, Rodrigo Montenegro wrote:
>
> > After I set the environment variable LANG to pt_BR.UTF8 the string of the
> filename seems to be correct since I do not have to process it anymore to
> compare to undesirable chars.
> >
> > The main goal has been achieved, the script is blocking undesirable chars
> but I still can't print the error message containing the wrong chars to the
> user.
> >
> > Subversion sends the following message:
> >
> > "[Error output could not be translated from the native locale to UTF-8.]"
>
> I'm not sure why that is. Could you show us the source of your hook script?
>
>
Received on 2010-05-17 17:59:42 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.