Minor tweak to the sprintf(3) regexp so it must match exactly one % and specifier.
Export LC_ALL=C before sprintf pattern matching.