Re: Day and month name localization uses wrong locale category

From: Euler Taveira de Oliveira <euler(at)timbira(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Day and month name localization uses wrong locale category
Date: 2006-11-18 03:16:37
Message-ID: 20061118031637.GB3075@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Peter Eisentraut wrote:

> pei(at)bell:~$ date +%A
> Friday
>
> pei(at)bell:~$ LC_MESSAGES=de_DE(at)euro date +%A
> Friday
>
> pei(at)bell:~$ LC_TIME=de_DE(at)euro 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 strftime()? So we couldn't worry about gettext
translations; "all" is localized.
Why didn't I think it before? :-)

I'll try to code a patch today later if noone objects.

PS> I was thinking about changing this for the same reasons Peter
pointed out; I didn't have the time to do it before.

--
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-18 03:26:05 Re: [COMMITTERS] pgsql: Clarify description of CIDR-address column
Previous Message Florian G. Pflug 2006-11-18 02:51:56 Re: [COMMITTERS] pgsql: Clarify description of CIDR-address