Version comparison algorithm

Mauricio Teixeira (netmask) netmask at webset.net
Fri Nov 24 10:47:04 PST 2006


Em Sex, 2006-11-24 às 17:05 -0200, Gustavo Niemeyer escreveu:

> > Is [a-z] considered to be < than [0-9]?
> 
> According to RPM's algorithm, yes.  It depends on the backend
> used really (RPM vs. DEB vs. ...).

ASCII(2) = 50
ASCII(j) = 106

Reverse logic? ;)

-- 
% Mauricio Teixeira (netmask)
% mteixeira{a}webset{d}net <> Maceio/AL/BR
% http://mteixeira.webset.net <> http://pmping.sf.net




More information about the Smart mailing list