Re: [PATCH] Formatting patch for psql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCH] Formatting patch for psql
Дата
Msg-id 22120.1132930701@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCH] Formatting patch for psql  (Martijn van Oosterhout <kleptog@svana.org>)
Ответы Re: [PATCH] Formatting patch for psql  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-patches
Martijn van Oosterhout <kleptog@svana.org> writes:
> ... There is a fair
> bit of encoding code in there already but the information you need here
> is specifically: is this char a control character and in particular, is
> it a newline.

The appropriate test for that is just "ch == '\n'", in all the encodings
we support (although you do have to be careful that ch isn't a non-first
byte of a multibyte character).  If that's all you need then inventing
a bunch of additional infrastructure is really inappropriate.

            regards, tom lane

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

Предыдущее
От: Martijn van Oosterhout
Дата:
Сообщение: Re: [PATCH] Formatting patch for psql
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: is not distinct from