the attached patch makes initdb -U username work as advertised.
Barring objection I will apply it to head and backpatch to 8.0 and 8.1
branches.
I guess nobody uses this much, or we'd surely have had reports of
breakage long before now.
cheers
andrew