diff --git a/src/canonmn_int.cpp b/src/canonmn_int.cpp index 046aca4a..b38eaf0f 100644 --- a/src/canonmn_int.cpp +++ b/src/canonmn_int.cpp @@ -289,6 +289,7 @@ namespace Exiv2 { { (long int)0x3940000, "EOS M5" }, { (long int)0x3950000, "PowerShot G5 X" }, { (long int)0x3970000, "PowerShot G7 X Mark II" }, + { (long int)0x3980000, "EOS M100" }, { (long int)0x3990000, "PowerShot ELPH 360 HS / IXUS 285 HS / IXY 650" }, { (long int)0x4010000, "PowerShot SX540 HS" }, { (long int)0x4020000, "PowerShot SX420 IS" }, diff --git a/test/data/exiv2-pr317.exv b/test/data/exiv2-pr317.exv new file mode 100644 index 00000000..301f2c9b Binary files /dev/null and b/test/data/exiv2-pr317.exv differ diff --git a/tests/bugfixes/github/test_pr_317.py b/tests/bugfixes/github/test_pr_317.py new file mode 100644 index 00000000..53265342 --- /dev/null +++ b/tests/bugfixes/github/test_pr_317.py @@ -0,0 +1,17 @@ +# -*- coding: utf-8 -*- + +import system_tests + + +class CanonEOSM100(metaclass=system_tests.CaseMeta): + + filename = "$data_path/exiv2-pr317.exv" + commands = ["$exiv2 -pa --grep model/i $filename"] + + stdout = ["""Exif.Image.Model Ascii 15 Canon EOS M100 +Exif.Canon.ModelID Long 1 EOS M100 +Exif.Photo.LensModel Ascii 29 EF-M15-45mm f/3.5-6.3 IS STM +""" + ] + stderr = [""] + retval = [0]