Use of pager, help, localization:

Поиск
Список
Период
Сортировка
От Daniele Varrazzo
Тема Use of pager, help, localization:
Дата
Msg-id CA+mi_8bR68W9t8mXpAi2NcmviDHPPYz7irokscmsOd3MFv+4YA@mail.gmail.com
обсуждение исходный текст
Ответы Re: Use of pager, help, localization:
Список pgsql-hackers
From psql/help.c

    /*
    * Keep this line count in sync with the number of lines printed below!
    * Use "psql --help=variables | wc" to count correctly; but notice that
    * Windows builds currently print one more line than non-Windows builds.
    * Using the larger number is fine.
    */
    output = PageOutput(156, pager ? &(pset.popt.topt) : NULL);

uhm... this doesn't work at all with i10n, above all if respecting an
80 cols width.

Wouldn't be better to generate the output in a temp buffer after l10n,
count the line, then choose whether to use a pager or not?

Can provide a patch if you deem so.

-- Daniele


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

Предыдущее
От: Justin Pryzby
Дата:
Сообщение: pg11rc1 DROP INDEX: NOTICE: drop_trigger
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pg11rc1 DROP INDEX: NOTICE: drop_trigger