difftools trouble with CR LF on Windows
John Arbash Meinel
john at arbash-meinel.com
Tue Aug 22 13:20:28 BST 2006
Stephen Ward wrote:
> I'll take a look, but this is going to take a bit of time since I need to
> scrounge access to a Windows machine first.
>
> -- Steve
My best guess is that the files are being read in binary mode:
f = open(foo, 'rb')
But you are just writing to stdout in text mode, which causes a
translation to occur on Windows.
I have a plugin to help with that:
http://bzr.arbash-meinel.com/plugins/binary_sys/
Even if you don't use the plugin itself, you can get the 'set stdout to
binary' code from there.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060822/2bb862e7/attachment.pgp
More information about the bazaar
mailing list