Patches for Patch to improve check_dig [sf#944000] [#266]