[tor-bugs] #6445 [Tor Relay]: Version spec revisions

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Sun Jul 22 18:55:12 UTC 2012


#6445: Version spec revisions
-------------------------+--------------------------------------------------
 Reporter:  atagar       |          Owner:              
     Type:  enhancement  |         Status:  needs_review
 Priority:  minor        |      Milestone:              
Component:  Tor Relay    |        Version:              
 Keywords:               |         Parent:              
   Points:               |   Actualpoints:              
-------------------------+--------------------------------------------------

Comment(by atagar):

 > The spec says that status tags should be "compared lexically".

 As Roger pointed out, I'm confused on this bit.

 {{{
 23:01 < armadev> atagar: since when is Z less than A in ascii?
 11:31 < atagar> armadev: Sorry about that, I was thinking about sorting
 the numeric values.
 11:34 < armadev> atagar: i think you have the definition of 'lexically'
 backwards.
 11:38 < atagar> Yea, I was confusing myself. Looked it up, said 'oh, it
 mean alphabetically? that has ambiguity, what about capitals or numbers?',
 then reread the spec where it said to compare by the ASCII byte value and
 decided that it meant sorting by that numerically.
 11:38 < atagar> Which is the right conclusion, but backwards.
 }}}

 Personally I still think "we compare them lexically as ASCII byte strings"
 is confusing. My preference would be for us to honor what we said earlier
 in the spec that "The STATUS_TAG is purely informational" and not have it
 impact the comparison, but happy to have it clarified whatever way works
 best.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6445#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list