Skip site navigation (1) Skip section navigation (2)

Potential to_char localization bug

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Potential to_char localization bug
Date: 2006-11-27 11:40:02
Message-ID: 200611271240.04239.peter_e@gmx.net (view raw or flat)
Thread:
Lists: pgsql-hackers
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.

-- 
Peter Eisentraut
http://developer.postgresql.org/~petere/

Responses

pgsql-hackers by date

Next:From: Heikki LinnakangasDate: 2006-11-27 12:10:11
Subject: Re: [CORE] RC1 blocker issues
Previous:From: Simon RiggsDate: 2006-11-27 11:30:41
Subject: Configuring BLCKSZ and XLOGSEGSZ (in 8.3)

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group