On Wednesday, 15 February 2006 at 15:13, Brendan Cully wrote: > Wed Feb 15 15:06:45 PST 2006 Brendan Cully <[EMAIL PROTECTED]> > * Encode added paths in hglib > > In at least mercurial 0.8, repository.add doesn't seem to handle > unicode pathnames. Recode them to the repository encoding as we > do in the commit handler.
I chatted with Matt Mackall about this on #mercurial. Mercurial expects all its input (filenames and also changelogs) to be utf-8. It may be a bad idea to allow the user to override this, and it is probably bad to use getpreferredencoding. Maybe we should simply force the encoding to utf-8? Some other places in hglib probably need to be updated too (the remove/rename/copy bits). I don't know much about charsets, so I thought I'd throw the idea out here in case anyone has other ideas... _______________________________________________ Tailor mailing list [email protected] http://lists.zooko.com/mailman/listinfo/tailor
