[bittorrent] BEncodedDictionary must have ordered keys... what definition of "ordered"?

Harold Feit dwknight at depthstrike.com
Wed Oct 25 12:48:37 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

http://wiki.theory.org/BitTorrentSpecification#bencoding

"Keys must be strings and appear in sorted order (sorted as raw strings,
not alphanumerics)."

Given the history of problems with BitComet in the past, I wouldn't be
suprised if it's doing things wrong. The ".utf-8" key names are
technically wrong in the metadata specification, since strings in a
torrent (for information such as URLs, Display names and comments) are
supposed to be UTF-8 anyway.

Alan McGovern wrote:
> Hi,
>
> Basically i've encountered a rather worrying problem with a .torrent
> file created by BitComet 0.7. It has the following keys in the main
> dictionary in the following order:
>
> publisher-url.utf-8
> publisher.utf-8
>
> Now, the problem is that the MS.NET framework defines
> that to be in non-alphabetical order as according to the String.Compare
> method in it, '-' should come after '.' So, which is right, .NET or
> BitComet? Also, there must be a standardised way of deciding which
> letters come before which that we can compare against. Anyone know where
> to find such a list?
>
>
> Thanks,
> Alan.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> BitTorrent mailing list
> BitTorrent at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/bittorrent
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEVAwUBRT+VZV8nceBm0DUaAQLgoggAxKYws2+ujctWNuFgYdcVeC5oFwN31czj
zd1RWZ9nSj1I/TmkIH4U6nAc3IyP1UTXX8OhJsVGYTAefI3NCPlpudmDggOaCruq
JtMq+Z4YKRrHfNCq/iZVSHXoHiJvusw4rDwHWCiS7HEu1w8V7bAOp701PR2faSC6
k8iFA+Js6UupnUvCxCewCnH7Jb0w2ePsZpi489XyfgpT7VpxDGRVVWN5kifzNNIM
UQReXIXRQMgC4GN8qCFSXDYA1LIjoKY+8/IQ6Y1HeTlB1ganiHIUcEnyyFZHSpU1
U0/RIlPyUhYvFVmA6cDA6rEE58boWj7c4R8vTkO6fwRBJL+I5tUowA==
=XK94
-----END PGP SIGNATURE-----




More information about the BitTorrent mailing list