[MERGE] Test for bug #272444 (symlinks to Unicode file names)
Andrew Bennetts
andrew.bennetts at canonical.com
Mon Oct 27 03:06:19 GMT 2008
John Arbash Meinel wrote:
[...]
> > The commit still fails for me. I get a UnicodeDecodeError in testament.py. If
> > I set $BZR_HOME to point to an empty directory (so as to ignore my ~/.bazaar
> > settings), then the commit succeeds but I get a UnicodeEncodeError in
> > dirstate.py during branch.
> >
> > I think the reason for the difference is that I have “create_signatures =
> > always” in my bazaar.conf.
> >
> > In case you're wondering, I'm using Ubuntu (Intrepid, i.e. 8.10), so my system
> > Python is also 2.5. My LANG=en_AU.UTF-8. In addition to changing BZR_HOME I
> > also used --no-plugins.
> >
> > -Andrew.
>
> That is also a bit worrying. Considering the test suite should sanitize
> all things like $HOME and run in a temp directory. Is this properly
> being run during a TestCaseInTempDir subclass?
The “test” we're discussing here is:
mkdir br1; cd br1; bzr init .; touch més; ln -s més prova; bzr add prova;
bzr commit -m "link to utf-8 file name"; cd ..; bzr branch br1 br2
(from <https://bugs.edge.launchpad.net/bzr/+bug/272444/comments/1>)
So not part of the test suite. It does give a good demonstration of the perils
of testing in anything but a precisely controlled environment, though :)
-Andrew.
More information about the bazaar
mailing list