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
Views: Raw Message | Whole Thread | Download mbox | Resend email
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

Browse pgsql-hackers by date

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