Re: Day and month name localization uses wrong locale category

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Day and month name localization uses wrong locale category
Date: 2006-11-21 01:03:28
Message-ID: 20061121010328.GC2996@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:

> > + /*
> > + * Return the LC_TIME information
> > + */
> > + char *
> > + pg_get_lc_time(void)
> > + {
> > + return locale_time;
> > + }
>
> locale_time is a global GUC variable, so there is surely no point in the
> above function. I have not looked at the rest of the patch.
>
I know that. If I didn't use it how could i know what is the current
LC_TIME setting? The LC_TIME in backend is always C so I need to change
it to xx_XX briefly, do the job (strftime) and then get it back to C. Am
I wrong? That's what I do.

--
Euler Taveira de Oliveira
http://www.timbira.com/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2006-11-21 01:30:37 Re: Day and month name localization uses wrong locale category
Previous Message Euler Taveira de Oliveira 2006-11-21 00:34:22 Re: zic data updates