Re: Unicode UTF-8 table formatting for psql text output - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Unicode UTF-8 table formatting for psql text output
Date
Msg-id 14988.1254322652@sss.pgh.pa.us
Whole thread Raw
In response to Re: Unicode UTF-8 table formatting for psql text output  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Roger Leigh wrote:
>> Here we just force the locale to C.  This does have the disadvantage
>> that --no-locale is made redundant, and any tests which are dependent
>> upon locale (if any?) will be run in the C locale.

> That is not a solution.

Right.  I think you may have missed the point of what Peter was saying:
it's okay to force the locale to C on the *client* side of the tests.
The trick is to not change the environment that the temp server is
started with.  This will take some redesign inside pg_regress, I think.
Probably initialize_environment needs to be split into two functions,
one that's run before firing off the temp server and one that runs
after.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Unicode UTF-8 table formatting for psql text output
Next
From: Roger Leigh
Date:
Subject: Re: Unicode UTF-8 table formatting for psql text output