Windows Mercurial 2.5(或更高版本)上的unicode文件名 [英] unicode filenames on windows mercurial 2.5 (or future)

查看:78
本文介绍了Windows Mercurial 2.5(或更高版本)上的unicode文件名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我知道什么DVCS是否支持Unicode文件名?.但是它们很旧,不适用于最新版本的水银.

First off, I am aware of Mercurial: Problem with non-ascii letters in filenames between Windows and Linux and What DVCS support Unicode filenames?. But they are old, and do not apply to the latest versions of mercurial.

他们俩都提到 FixUtf8扩展-不会 与最新版本的mercurial(在撰写本文时为2.3.1一起使用)工作,并且自从mercurial 2.0起显然不起作用.实际上,启用该扩展名将使您根本无法添加任何文件,甚至不能添加简单的原始" ascii文件名. FixUtf8Extension似乎已被放弃-它的最后一次提交是在2010年.

They both mention the FixUtf8 extension - which does not work with the latest version of mercurial (2.3.1 as of this writing) and apparently has not worked since mercurial 2.0. In fact enabling that extension will prevent you from adding any files at all, even plain "vanilla" ascii filenames. The FixUtf8Extension appears to have been abandoned - it's last commit was in 2010.

到目前为止,我一直是一个快乐的商业用户,但是我现在在一个国际项目中,对非ASCII文件名的支持至关重要.如果不能一味解决,我将不得不研究替代版本控制系统.

I have been a happy mercurial user up until now, but I am now on an international project where support for non-ascii filenames is critical. I will have to look at alternate version control systems if this can't be addressed in mercurial.

在Windows上最新版本的mercurial是否完全支持Unicode文件名?

Is there any support for unicode filenames at all with the latest versions of mercurial on Windows?

推荐答案

否,Mercurial仍不支持文件名的转码.也就是说,它将以二进制字符串形式签入和签出文件名,如果您需要在文件名编码不兼容的系统之间移动文件,则会遇到问题.

No, Mercurial still doesn't support transcoding of filenames. That is, it will checkin and checkout filenames as binary strings and you will experience problems if you need to move files between systems with incompatible filename encodings.

如果团队中的每个人都在使用具有相同代码页的Windows,则可以使用非ASCII字符就好了.它们将存储在您使用的任何代码页中的存储库中,但每个人都可以使用这些文件.

If everybody in your team is using Windows with the same code page, then you can use non-ASCII characters just fine. They'll be stored inside the repository in whatever code page you use, but everybody will be able to use the files.

如果您需要在平台之间移动文件,请暂时使用ASCII文件名.

If you need to move files between platforms, then stick to ASCII filenames for now.

作品中有一个 Windows UTF-8计划,以及一个

There is a Windows UTF-8 plan in the works, and FUJIWARA Katsunori has been working on it, but it's not yet (September 2012) ready.

这篇关于Windows Mercurial 2.5(或更高版本)上的unicode文件名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆