提交包含非 ASCII 字符的文本文件时出现问题
我有一个包含一些希腊字符的 html 文件,每当我尝试提交它时,我都会得到:
commitlog: file="dummy.html" 似乎是一个二进制文件 提交日志错误:file="dummy.html" 显示为 BINARY,但签入为 ASCII cvs 提交:预提交检查失败
我正在使用: cvs add -kk dummy.html cvs commit dummy.html
有没有办法解决这个问题并将文件提交为文本而不是二进制。
谢谢
I have a html file that contain some Greek characters, and whenever I try to commit it I got:
commitlog: file="dummy.html" appears to be a BINARY
commitlog error: file="dummy.html" appears BINARY but checked in as ASCII
cvs commit: Pre-commit check failed
I am using:
cvs add -kk dummy.html
cvs commit dummy.html
Is there any way to workaround this and commit file as text and not as binary.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您的文件的编码方式。 例如,如果您使用 utf-8,CVS 可以将其视为普通文本文件。
It depends on how your files are encoded. If you use utf-8 for example, CVS could treat this as normal text files.
尝试使用以下命令添加此文件:
cvs add -kb
如果您想要二进制文件,请尝试:
cvs add -ko
Try add this file with the following command:
cvs add -kb
if you want binary file, try:
cvs add -ko