[sword-devel] Module version numbers

David Haslam dfhdfh at protonmail.com
Tue Sep 25 05:03:29 EDT 2018

Ignoring the spurious SwordVersion hit, it seems that the string after the dash is a date in six digit format.

IMHO, these modules should simply be re-issued with the dates recorded in the respective History key.

It's not worth the effort to make the API parse these as they are now.
The dash is a nonconformance to what should be in the Version key.

Aside: Are there any limits to the number of dot separators in the Version value, or to the number of digits in total or in any part?
Would SWORD crash with a buffer overflow were it to encounter an inordinately long Version?

Best regards,


Sent from ProtonMail Mobile

On Tue, Sep 25, 2018 at 09:44, Jaak Ristioja <jaak at ristioja.ee> wrote:

> Hello!
> Most modules include version numbers matching the regular expression
> ^[0-9]+(.[0-9]+)*$
> However, looking at the .conf files, there are version fields with
> values also containing dashes:
> ~/.sword/mods.d $ grep -E 'Version=.*-' *
> 2tgreek.conf:Version=2.7-120109
> invstrongsrealgreek.conf:Version=1.4-090107
> jesermons.conf:SwordVersion=2017-05-24
> strongsrealgreek.conf:Version=1.5-150704
> tischmorph.conf:Version=2.7-120109
> How should these be interpreted? Should 1.2-3.4 be interpreted as
> (1).(2-3).(4) or (1.2)-(3.4)? It seems that SWVersion interprets such as
> just 1.2.4 (without the -3 entirely).
> God bless!
> J
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20180925/cd0408aa/attachment.html>

More information about the sword-devel mailing list