[Bug 329992] Invalid behavior of grep with regexp ^[A-Z]