Filename encoding interoperability between Linux

Yuya Nishihara yuya at tcha.org
Mon Aug 5 13:13:25 UTC 2019


On Mon, 05 Aug 2019 02:19:04 +0200, Manuel Jacob wrote:
> So far, all systems from which we accessed our Mercurial repositories 
> have been Linux machines, configured with a UTF-8 locale.
> 
> We want to give some Windows machines access to some of our 
> repositories.  But now the problem is that if a file with a non-ASCII 
> filename is committed on Windows, the filename is not properly shown on 
> Linux and vice versa.
> 
> I understand that the problem is that Mercurial doesn't interpret the 
> encoding of the file name.  But it's unclear how to solve the problem.  
> The Wiki was not very helpful regarding this.  The information ranges 
> from "too bad, Mercurial won't help you here" to "we have a plan on how 
> to fix the problem", but because the idea is originally from 2011, it's 
> unclear whether or not it was implemented in the meantime.

Windows UTF-8 support is not implemented yet.

https://www.mercurial-scm.org/wiki/WindowsUTF8Plan

> What would you recommend to solve this problem?  The Windows clients 
> access the repositories with TortoiseHG.  Ideally, in the repository, we 
> would like to have everything encoded in UTF-8.

I heard fixutf8 extension worked at some point, but I don't know if it's
compatible with recent Mercurial versions.

https://www.mercurial-scm.org/wiki/FixUtf8Extension



More information about the Mercurial mailing list