RE_DOT_NEW_LINE and NOT_NULL work for '.' only in regex. OTOH, they work for MBCSET in addition to '.' in DFA. This patch adapts the behavior of DFA to of regex. BTW, at the moment, grep and gawk never use match_mb_charset function to be fixed by it.