Hi Ian. The GNU gnulib project is considering adding a function that would compare strings in the same way that dpkg compares version numbers, as you can see in the thread here: http://permalink.gmane.org/gmane.comp.lib.gnulib.bugs/14693
Is there a chance that you would be willing to contribute to the FSF the actual code from dpkg for this? (Otherwise, we will probably have one person write a formal specification for the version comparison algorithm, and then another person implement something equivalent from that specification.) Thanks, Ben. -- Ben Pfaff http://benpfaff.org