Re: Potential to_char localization bug
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Potential to_char localization bug |
| Дата | |
| Msg-id | 20061127144559.GF4432@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Potential to_char localization bug (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-hackers |
Peter Eisentraut wrote:
> Here is a localization bug waiting to happen:
>
> static char *
> localize_month_full(int index)
> {
> char *m = NULL;
>
> switch (index)
> {
> case 4:
> m = _("May");
> break;
>
>
> static char *
> localize_month(int index)
> {
> char *m = NULL;
>
> switch (index)
> {
> case 4:
> m = _("May");
> break;
>
>
> Haven't thought of a fix yet.
Build a table/function to return short names for full month names, and
use full-length month names on localize_month?
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-hackers по дате отправления: