I have looked at our source and I think bzr is just doing the equivalent of
python -c 'import os;print repr(os.readlink("foo"))'
so you should be able to test if that causes a problem. My guess is that Python, which can handle strings with embedded nuls, is (perhaps reasonably) giving back "bar\0".
I have looked at our source and I think bzr is just doing the equivalent of
python -c 'import os;print repr(os. readlink( "foo")) '
so you should be able to test if that causes a problem. My guess is
that Python, which can handle strings with embedded nuls, is (perhaps
reasonably) giving back "bar\0".