You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Petyo Ivanov <pe...@wildbit.com> on 2010/03/23 11:32:20 UTC
Unicode support in ruby bindings checkout
Hi,
I have run into an issue with the ruby bindings, when dealing with
filenames containing unicode symbols.
Setup is CentOS:
[root@centos ~]# ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
[root@centos ~]# svn --version
svn, version 1.6.6 (r40053)
compiled Jan 8 2010, 18:32:29
...
[root@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@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.
Unicode support in ruby bindings checkout
Posted by Petyo Ivanov <pe...@wildbit.com>.
Hi,
I have run into an issue with the ruby bindings, when dealing with
filenames containing unicode symbols.
Setup is CentOS:
[root@centos ~]# ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [x86_64-linux]
[root@centos ~]# svn --version
svn, version 1.6.6 (r40053)
compiled Jan 8 2010, 18:32:29
...
[root@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@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.