首页 > 学院 > 开发设计 > 正文

解决svn错误:post-commit hook failed (exit code 1) with output.

2019-11-08 01:17:34
字体:
来源:转载
供稿:网友

svn客户端post-commit时,出现如下错误

post-commit hook failed (exit code 1) with output.

[Error output could not be translated from the native locale to UTF-8.]

 

解决方法:

其实上述错误是一个错误,执行post-commit脚本时文字编码造成的

 

在版本库hooks/post-commit文件中

原来是#export LANG=zh_CN.GBK修改为export LANG=en_US.UTF-8即可(svn服务器默认是utf8)


上一篇:LeetCode 78. Subsets

下一篇:B. Code For 1

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表