testbzr fails on windows with bad line endings.
John A Meinel
john at arbash-meinel.com
Wed May 25 07:20:13 BST 2005
Michael Ellerman wrote:
>On Wed, 25 May 2005 15:50, John A Meinel wrote:
>
>
>>Since windows supports it, I think we should use '/' as the path separator.
>>It just unifies platforms.
>>
>>
>
>Does it? Cool, chalk one up for UNIX ;D
>
>Python has os.path.sep and os.path.join and so on which in theory mean you can
>be completely path seperator agnostic, but if you can use '/' internally then
>that'd probably be easier. What about drive letters? You'd also have to be
>careful you always convert to the native path encoding before talking to the
>outside world.
>
>cheers
>
>
Well, I think we do need to be careful when talking with the outside
world, but I certainly think that all paths that are stored inside of
the XML files, etc should be use '/' as the path separator.
If you supply the '/' inside of your application to something like
'fopen' it will work fine. You have trouble if you do it on the command
line, since some programs parse '/' as an option rather than part of the
filename. So writing 'dir c:/temp' makes dir think you are passing the
/temp flag(s). But "notepad c:/test.txt" works just fine.
I personally hate using '\' as a path separator, and since windows
doesn't require it, I avoid it when possible. Some people feel that
isn't playing nice, so if we decide to, we can make bzr output '\'.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050525/a13f1552/attachment.pgp
More information about the bazaar
mailing list