Andrew Dunstan <andrew(at)dunslane(dot)net> writes:
> Did we actually find a current system where it broke with a straight
> putenv("LC_ALL")?
Well, the Single Unix Spec does not say that that works, and neither
does the HPUX man page for putenv, so you're going to have a hard time
convincing me that it's a portable solution. I think the real story is
simply that no one has tested the C version of initdb hard enough to
notice whether that line actually accomplished anything or not.
regards, tom lane