Re: Unicode UTF-8 table formatting for psql text output
От | Tom Lane |
---|---|
Тема | Re: Unicode UTF-8 table formatting for psql text output |
Дата | |
Msg-id | 3154.1254774728@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Unicode UTF-8 table formatting for psql text output (Roger Leigh <rleigh@codelibre.net>) |
Ответы |
Re: Unicode UTF-8 table formatting for psql text output
|
Список | pgsql-hackers |
Roger Leigh <rleigh@codelibre.net> writes: > On Sun, Oct 04, 2009 at 11:22:27PM +0300, Peter Eisentraut wrote: >> Elsewhere in the psql code, notably in mbprint.c, we make the decision >> on whether to apply certain Unicode-aware processing based on whether >> the client encoding is UTF8. The same should be done here. >> >> There is a patch somewhere in the pipeline that would automatically set >> the psql client encoding to whatever the locale says, but until that is >> done, the client encoding should be the sole setting that rules what >> kind of character set processing is done on the client side. > OK, that makes sense to a certain extent. However, the characters > used to draw the table lines are not really that related to the > client encoding for data sent from the database (IMHO). Huh? The data *in* the table is going to be in the client_encoding, and psql contains no mechanisms that would translate it to something else. Surrounding it with decoration in a different encoding is just a recipe for breakage. regards, tom lane
В списке pgsql-hackers по дате отправления: