Re: [HACKERS] Day and month name localization uses wrong locale category

2007-02-14 Thread Bruce Momjian
Added to TODO: o Use LC_TIME for localized weekday/month names, rather than LC_MESSAGES http://archives.postgresql.org/pgsql-hackers/2006-11/msg00390.php --- Euler Taveira de Oliveira wrote:

Re: [HACKERS] Day and month name localization uses wrong locale category

2007-02-13 Thread Bruce Momjian
Would someone update this patch with the optimization below. The patch is at? http://momjian.postgresql.org/cgi-bin/pgpatches_hold --- Tom Lane wrote: Peter Eisentraut [EMAIL PROTECTED] writes: What's

[HACKERS] Day and month name localization uses wrong locale category

2006-11-17 Thread Peter Eisentraut
In 8.2, utils/adt/formatting.c uses our NLS mechanism to localize day and month names (I assume for use by to_char). But since this necessarily ties the outcome to the LC_MESSAGES setting, this comes out inconsistently with Unix locale behavior, e.g., [EMAIL PROTECTED]:~$ locale LANG=

Re: [HACKERS] Day and month name localization uses wrong locale category

2006-11-17 Thread Euler Taveira de Oliveira
Peter Eisentraut wrote: [EMAIL PROTECTED]:~$ date +%A Friday [EMAIL PROTECTED]:~$ [EMAIL PROTECTED] date +%A Friday [EMAIL PROTECTED]:~$ [EMAIL PROTECTED] date +%A Freitag Is there no API to get the localized names from the C library so that LC_TIME takes effect? What about using