[PATCH 1 of 8] use UTF-8 to encode/decode log text

Matt Mackall mpm at selenic.com
Mon Nov 20 17:53:47 UTC 2006


On Mon, Nov 20, 2006 at 11:43:04PM +0600, Andrey wrote:
> On 20 November 2006 (Mon) 22:55, Matt Mackall wrote:
> > This is still going to throw exceptions on existing repos, right?
> > That's absolutely not acceptable.
> >
> > Again, this should go in util and be robust. And don't bother with
> > making a CHANGELOG_ENCODING variable, please.
> 
> What about this?
> 
> Please note that safe_decode function should better use ui.encodings['default']
> instead of locale.getpreferredencoding(), but passing an ui object to this
> function every time is clearly unacceptable. That is why I suggested to move all
> config related stuff from ui into a separate module. :)

See my other message as to why we don't need ui here.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list