[MERGE] Test for bug #272444 (symlinks to Unicode file names)

Daniel Clemente dcl441-bugs at yahoo.com
Sun Oct 12 01:26:45 BST 2008


  Hi, I noticed an error on my patch. I used:
os.symlink(u'adi\xc3\xb3s','tree1/link2')   
  instead of:
os.symlink('adi\xc3\xb3s','tree1/link2')   

  And therefore I was creating a link to the target:
adiós
  instead of:
adiós

  The test worked because both targets were non-ASCII; nevertheless, the first one was double-encoded Unicode.

  I attach a patch which corrects this and also displays the bug number on errors.

  Sorry for continuing an already approved patch. I would like to do it in another way which doesn't disturb so much the list, the workflow and Bundle Buggy, but I don't know how.


  Thanks,
Daniel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_272444_v5.patch
Type: text/x-diff
Size: 8050 bytes
Desc: fifth version of patch with new test
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081012/0b478537/attachment.bin 


More information about the bazaar mailing list