Есть такой вот код на python'е:
#!/usr/bin/python
# -*- coding: utf-8 -*-
import pysvn
SVN_REPO_URL = 'http://svn.mydomain.ru/svn/repo'
CHECKOUT_DESTINATION = './'
def get_login(realm, username, may_save):
return True, 'mylogin', 'mypassword', True
client = pysvn.Client()
client.callback_get_login = get_login
client.checkout(SVN_REP_OURL, CHECKOUT_DESTINATION)
pysvn._pysvn_2_6.ClientError: Can't convert string from 'UTF-8' to native encoding:
Что несколько странно, потому что UTF-8 и есть моя native encoding.
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=