Re: Fwd: automatic disable unicode line style when terminal is not unicode

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Fwd: automatic disable unicode line style when terminal is not unicode
Дата
Msg-id 5771.1520178833@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Fwd: automatic disable unicode line style when terminal is not unicode  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: Fwd: automatic disable unicode line style when terminal is not unicode  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I have to return back to 8bit encoding, and in this old world, the unicode
> borders doesn't work. Sure. It can be simply disabled and forced to ascii.
> What do you think about it?

I don't think we should assume we know what the terminal code will do.
If the line style doesn't actually work, the user will notice and change
the setting quickly enough.  If we try to do it for him, we might break
situations that work fine now.

The sort of situation I have in mind is, for instance, working through
an ssh connection.  IME it's very often the case that the server side
of the connection doesn't really have an accurate idea of the terminal
capabilities or encoding on the user side.  Code that's trying to be
smart just results in less-predictable behavior.

            regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jeff Janes
Дата:
Сообщение: Re: [patch] BUG #15005: ANALYZE can make pg_class.reltuples inaccurate.
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: Parallel Aggregates for string_agg and array_agg