diff --git a/src/nikonmn_int.cpp b/src/nikonmn_int.cpp index e038825a..ee003472 100644 --- a/src/nikonmn_int.cpp +++ b/src/nikonmn_int.cpp @@ -2506,6 +2506,9 @@ fmountlens[] = { {0x00,0x40,0x11,0x11,0x2C,0x2C,0x00,0x00,0x00,0x00,0x00, "Samyang", "", "8mm f/3.5 Fish-Eye"}, {0x00,0x58,0x64,0x64,0x20,0x20,0x00,0x00,0x00,0x00,0x00, "Soligor", "", "C/D Macro MC 90mm f/2.5"}, // +// https://github.com/Exiv2/exiv2/issues/743 +{0xc9,0x48,0x37,0x5c,0x24,0x24,0x4b,0x4e,0x01,0x00,0x00, "Sigma", "", "24-70mm F2,8 DG OS HSM Art"}, +// {0,0,0,0,0,0,0,0,0,0,0, NULL, NULL, NULL} }; //------------------------------------------------------------------------------ diff --git a/test/data/issue_743.exv b/test/data/issue_743.exv new file mode 100644 index 00000000..d7bc7e51 Binary files /dev/null and b/test/data/issue_743.exv differ diff --git a/tests/bugfixes/github/test_issue_743.py b/tests/bugfixes/github/test_issue_743.py new file mode 100644 index 00000000..bc45fabb --- /dev/null +++ b/tests/bugfixes/github/test_issue_743.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +from system_tests import CaseMeta, path + +class Issue743NikonSigmaArtLens(metaclass=CaseMeta): + """ + Regression test for the bug described in: + https://github.com/Exiv2/exiv2/issues/743 + """ + url = "https://github.com/Exiv2/exiv2/issues/743" + + filename = path("$data_path/issue_743.exv") + commands = ["$exiv2 -pa --grep lensid/i $filename"] + stderr = [""] + stdout = ["" + """Exif.NikonLd3.LensIDNumber Byte 1 Sigma 24-70mm F2,8 DG OS HSM Art +""" +] + retval = [0]