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

Unicode support in ruby bindings checkout

From: Petyo Ivanov <petyo_at_wildbit.com>
Date: Tue, 23 Mar 2010 13:32:20 +0200

Hi,

I have run into an issue with the ruby bindings, when dealing with
filenames containing unicode symbols.

Setup is CentOS:

[root_at_centos ~]# ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
[root_at_centos ~]# svn --version
svn, version 1.6.6 (r40053)
   compiled Jan 8 2010, 18:32:29
...
[root_at_centos ~]#

I tried various installations, both from source and from packages, all
leading to the same result.

The test script is this:

https://gist.github.com/9893f77e9f4729ed1112

When I execute it, I get the following result:

[root_at_centos ~]# ruby test-checkout.rb
/usr/lib64/ruby/site_ruby/1.8/x86_64-linux/svn/util.rb:86:in
`svn_client_checkout3': (Svn::Error::SvnError)

subversion/libsvn_subr/utf.c:507: 22: m?\195?\164dchen.csv
        from /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/svn/util.rb:86:in `checkout3'
        from /usr/lib64/ruby/site_ruby/1.8/x86_64-linux/svn/client.rb:124:in `checkout'
        from test-checkout.rb:21

(the file contains a file named trunk/mädchen.csv)

what is more interesting here, if i do

irb, and

require 'test-checkout'

The script passes without a problem.

Any hints on the meaning of the error:

subversion/libsvn_subr/utf.c:507: 22: m?\195?\164dchen.csv

Would be greatly appreciated. Maybe an environment variable? The same
test passes without a problem on OS X.
Received on 2010-03-23 12:46:22 CET

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.