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

Alan McGovern alan.mcgovern at gmail.com
Wed Oct 25 13:31:12 EDT 2006


Well, ignoring that for a moment we still have the problem of ordering. Is
there a standard ordering that all languages implement? If so, how can we
check said standard ordering to make sure that the language you code your
Torrent Creator in actually conforms to the standard?

Thanks,
Alan.

On 10/25/06, Harold Feit <dwknight at depthstrike.com> wrote:
>
> -----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-----
>
> _______________________________________________
> BitTorrent mailing list
> BitTorrent at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/bittorrent
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ibiblio.org/pipermail/bittorrent/attachments/20061025/c8c36469/attachment.html 


More information about the BitTorrent mailing list