提交包含非 ASCII 字符的文本文件时出现问题

发布于 2024-07-23 06:23:58 字数 278 浏览 1 评论 0原文

我有一个包含一些希腊字符的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

歌枕肩 2024-07-30 06:23:58

这取决于您的文件的编码方式。 例如,如果您使用 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.

一萌ing 2024-07-30 06:23:58

尝试使用以下命令添加此文件:

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文