RFC: safe pattern matching for problematic encoding

Matt Mackall mpm at selenic.com
Wed May 23 14:24:38 CDT 2012


On Wed, 2012-05-23 at 15:14 +0200, Antoine Pitrou wrote:
> On Wed, 23 May 2012 14:53:43 +0200
> Mads <mads at kiilerich.com> wrote:
> > 
> > > As you noticed, wrapping/hooking points are scattered in widely, so I
> > > think that this implementation is not so good. But I don't have any
> > > other ideas.
> > >
> > > Are there any other ideas to solve this problem ?
> > 
> > The only viable solution is to consistently use utf-8 inside Mercurial.
> 
> Or to consistently use unicode strings ;)

<rage class=python3>
Yes, please go waste the next year or two of your life working on that
brilliant idea. Don't come back until you can preserve mixed filename
encodings on Linux while interoperating with old hg clients. Best of
luck.
</rage>

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list