OK, attached is a proposed patch to coreutils. Michael, can you give it a try?