Quoting Peter Palfrader <wea...@debian.org>:
That entire commit seems highly problematic and not well through-through for all use-cases.
Yes. It seems, that all three bugs you reported today relate to the same commit. I will try to fix this today for bpo.