See http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=52186 for an extensive testcase and a possible patch. H.J.