Re: Unicode UTF-8 table formatting for psql text output

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Unicode UTF-8 table formatting for psql text output
Дата
Msg-id 20090823223349.GC5287@alvh.no-ip.org
обсуждение исходный текст
Ответ на 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  (Roger Leigh <rleigh@codelibre.net>)
Список pgsql-hackers
Roger Leigh escribió:

> +#if (defined(HAVE_LANGINFO_H) && defined(CODESET))
> +    if (!strcmp(nl_langinfo(CODESET), "UTF-8"))
> +        text_format = &utf8format;
> +#endif

I think you should also try to match to "UTF8", and do it in
case-insensitive manner (pg_strcasecmp), just like chklocale.c.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: [PATCH 5/6] psql: print_aligned_text uses table formatting
Следующее
От: Greg Stark
Дата:
Сообщение: Re: clang's static checker report.