svn 的 svnlook 结果中的西里尔语支持
我试图使用 svnlook 从 SVN 获取更新/添加/删除的文件列表:
/usr/bin/svnlook changed -r 77 /var/lib/svn/epsilon/decorhouse
但我得到了一些奇怪的事情:
A data/cms/1315771790_?\208?\147?\209?\128?\208?\176?\209?\132?\209?\132?\208?\184?\209?\130?\208?\190 ?\208?\179?\209?\128?\208?\176?\209?\134?\208?\184?\209?\143 4.jpg
我知道这个文件名是西里尔字母并且采用 Windows-1251 编码。这个文件通常保存在SVN本身中,所以我可以正常提交和更新它。但是我怎样才能从 svnlook 获得正确的文件名呢?
谢谢!
PS Ubuntu 11.04 x64
I've trying to get list of updated/added/deleted files from SVN by svnlook using:
/usr/bin/svnlook changed -r 77 /var/lib/svn/epsilon/decorhouse
but I got some strange thing:
A data/cms/1315771790_?\208?\147?\209?\128?\208?\176?\209?\132?\209?\132?\208?\184?\209?\130?\208?\190 ?\208?\179?\209?\128?\208?\176?\209?\134?\208?\184?\209?\143 4.jpg
I know this filename is Cyrillic and in Windows-1251 encoding. This file is normally saved in SVN itself, so I can commit and update it normally. But how can I get the correct filename from svnlook?
Thanks!
P.S. Ubuntu 11.04 x64
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在运行
svnlook
之前尝试调用以下命令:您还可以在 shell 启动脚本中设置默认语言(例如
.bashrc
),这样您就不会每次都导出它。You should try invoking following command before running
svnlook
:You can also set a default lang in your shell start scripts (
.bashrc
, for example), so you won't have to export it every time.