Thanks for the xstdopen module; it simplifies diffutils and I installed the attached patches there for it.