[MERGE] UTF-8 encoding in binary diffs

Robert Collins robertc at robertcollins.net
Thu Jul 12 06:06:40 BST 2007


On Wed, 2007-07-11 at 10:35 -0500, John Arbash Meinel wrote:
> 
> 
> try:
>   self.build_tree(u'unicode\u03a9')
> except UnicodeError:
>   raise TestSkipped('Platform cannot represent unicode characters')
> 
> It isn't what I would prefer, but that is what we have been using.
> John 

I'd prefer to see a test helper:

path = self.get_nasty_supported_filename(prefix='foo')

-> full unicode on unicode platforms
-> just ascii in unicode form on other platforms or when LC_ALL=C

This means that the test can run always, and will test to the limit of
the platform.

Separately we should have a test that tests the behaviour of filename
encoding only, e.g. of two historical revisions - and that should work
regardless of the filesystem unicode support, all it needs is a terminal
that can show it.

-Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070712/e736d137/attachment.pgp 


More information about the bazaar mailing list