[PATCH 0 of 9 RFC] manage filename normalization policy per repository

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Thu May 31 09:23:11 CDT 2012


At Tue, 29 May 2012 15:07:58 -0500,
Matt Mackall wrote:
> 
> On Sun, 2012-05-27 at 23:36 +0900, FUJIWARA Katsunori wrote:
> > Then, what about the another extension plan below ?
> > 
> >   - configures filename normalization policy per root by ".hgeol" like
> >     file
> 
> Not excited about it.
> 
> >   - warn(or abort) for adding files of which names are normalized in
> >     unexpected style
> 
> Perhaps. There's not a whole lot a Mac user can do on their end though.
> 
> >     in addition to it, warn(or abort) for adding files colliding with
> >     each other in any normalizations, like case-folding handling
> 
> Can't happen on Mac. Can happen on Windows and Linux, I suppose. 
> 
> But is it really worth the trouble to fix it? The number of bugs filed
> related to canonicalization is zero. 

In Japan, people seems to wait for DVCS tools to fix this, because
they know that this kind of fixing requires long time.

For example, NFC/NFD handling of SVN was fixed at the end of 2008 at
last: it was not fixed in main stream but only in the macport version,
though.

    http://subversion.tigris.org/issues/show_bug.cgi?id=2464

According to voices in some programming events, there are potential
needs for DVCS tools, if they solve this problem.

Many of potential users are not programmers but graphic designers,
project managers and so on, so their voices are very small for us.

# and they disallow bad appearances like mangled NFD characters :-)

> How much of the issue is broken display vs typability? I see here that
> Windows mangles the display of combining characters:
> 
> http://svn.haxx.se/dev/archive-2012-01/att-0476/NFD_looks_weird_on_Command_Prompt.png
> 
> ..which actually has the upside that the filenames are at least
> partially typable / tab-completable. Maybe MS has fixed this display
> issue though.

Unfortunately, command prompt on Windows 7 still mangles the display
of combining characters. This mangled characters look very strange for
Japanese.

# on the other hand, Explorer can display/search both of them similarly !

> >   - provides hooks to check normalization style of filenames in
> >     incoming changes for pretxt*
> 
> Sure.
> 
> -- 
> Mathematics is the supreme nostalgia of our time.

----------------------------------------------------------------------
[FUJIWARA Katsunori]                             foozy at lares.dti.ne.jp


More information about the Mercurial-devel mailing list