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
Список 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 по дате отправления: