Tom Lane said: > Andrew Dunstan <[EMAIL PROTECTED]> 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.
Yeah, you're right. In fact SUS seems to be quite brain-dead on this - I can't see that it says anything about how to unset an enviroment value. How strange. > 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. > I tested on the platforms that were available to me. OTOH, I wonder if maybe what we previously did w.r.t. TZ didn't work, but the timezone libs were smart enough to disregard an empty TZ value. Anyway, you seem to have found a portable solution, so all's well that ends well. cheers andrew ---------------------------(end of broadcast)--------------------------- TIP 5: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faqs/FAQ.html