linux上使用pre-unlock遇到的中文问题
披星戴月 2008-12-24 04:50:12 操作系统:redhat AS4
svn版本:1.4.0
在svn仓库的hooks中编写pre-unlock,使用
#cp pre-unlock.tmpl pre-unlock
问题:在使用过程中,对英文目录及文件操作正常,对于目录或文件含中文的不能解锁,包括锁定人自己都不能解锁.
一、中文目录(出错)
[svn@localhost ~]$ svn lock http://192.168.0.3/test/01项目/readme.txt --username test123 --password test123 --force
“readme.txt”被用户“test123”锁定。
[svn@localhost ~]$ svn unlock http://192.168.0.3/test/01项目/readme.txt --username test123 --password test123 --force
svn: Unlock request failed: 500 Internal Server Error (http://192.168.0.3)
二、英文目录(正常)
[svn@localhost ~]$ svn lock http://192.168.0.3/test/test/test/readme.txt --username test123 --password test123 --force
“readme.txt”被用户“test123”锁定。
[svn@localhost ~]$ svn unlock http://192.168.0.3/test/test/test/readme.txt --username test123 --password test123 --force
“readme.txt”被解除锁定。
之后再测试把pre-unlock中的内容只保留:
#!/bin/sh
exit 0
但解锁中文名仍旧报错.
哪位仁兄遇到过相似问题没有呢?