Re: lc_time and localized dates

Поиск
Список
Период
Сортировка
Искать
От
Gevik Babakhani
Тема
Re: lc_time and localized dates
Дата
Msg-id
008d01c8785d$6d66e290$0a01a8c0@gevmus
Ответ на
lc_time and localized dates (Euler Taveira de Oliveira)
Список
Дерево обсуждения
lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates "Gevik Babakhani" <pgdev@xs4all.nl>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates "Gevik Babakhani" <pgdev@xs4all.nl>
Re: lc_time and localized dates Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Zdenek Kotala <Zdenek.Kotala@Sun.COM>
Re: lc_time and localized dates Peter Eisentraut <peter_e@gmx.net>
Re: lc_time and localized dates "Gevik Babakhani" <pgdev@xs4all.nl>
Re: lc_time and localized dates Zdeněk Kotala <Zdenek.Kotala@Sun.COM>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Tom Lane <tgl@sss.pgh.pa.us>
Re: lc_time and localized dates "Gevik Babakhani" <pgdev@xs4all.nl>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Bruce Momjian <bruce@momjian.us>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Alvaro Herrera <alvherre@commandprompt.com>
Re: lc_time and localized dates Bruce Momjian <bruce@momjian.us>
Re: lc_time and localized dates Euler Taveira de Oliveira <euler@timbira.com>
Re: lc_time and localized dates Tom Lane <tgl@sss.pgh.pa.us>
> Attached is a patch that replaces the lc_messages with 
> lc_time when using to_char in translation mode (TM) [1]. It 
> doesn't change the output behaviour. Per discussion [2], it's 
> using some cache mechanism so we don't need to call 
> setlocale() all the time.

Have you tested this patch on MSVC and MinGW (Windows) builds?
changing LC_MESSAGES/LC_TIME will most probably break the Windows behavior.

> Some issues:
> (i) some locales don't capitalize the first letter. I'm using
> pg_toupper() to do the job but I'm afraid it's not 
> appropriated. 

AFAIK, some locales like the Dutch doesn't have capitalized first letters
for month/day. 
Making the first letter capitalized for all values would be incorrect.


Regards,
Gevik 

В списке pgsql-patches по дате отправления
От: Zdenek Kotala
Дата:
От: Gevik Babakhani
Дата:
FAQ