Re: BUG #5391: coding issues displaying server messages

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Victor Vargas <kamusin(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5391: coding issues displaying server messages
Date: 2010-04-08 00:37:04
Message-ID: m2u603c8f071004071737wfbabf17ci84e161df1cd0924c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Mar 25, 2010 at 4:54 PM, Victor Vargas <kamusin(at)gmail(dot)com> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5391
> Logged by:          Victor Vargas
> Email address:      kamusin(at)gmail(dot)com
> PostgreSQL version: 8.4
> Operating system:   Ubuntu Lucid
> Description:        coding issues displaying server messages
> Details:
>
> This report was originally filed at:
> https://bugs.edge.launchpad.net/ubuntu/+source/postgresql-8.4/+bug/544114
>
>
>
> postgresql-8.4 on Lucid has a i18n coding issues when displays server
> messages.
>
> postgresql-8.4 template is fully translated into Spanish in Launchpad:
>
>  lucid/+
>
> and the translations are included in the
> /usr/share/locale-langpack/es/LC_MESSAGES/postgresql-8.4.mo.
>
> Among others, the error messages about "authentication failed" are fully
> translated, as you can see here:
>
>  lucid/+
>
> For example, the string:
>
>  password authentication failed for user "%s"
>
> is translated into Spanish this way:
>
>  la autentificación password falló para el usuario «%s»
>
> However, if I do a mistake during authentication, the server shows the error
> message in this way:
>
>  ricardo(at)kadath:~$ psql -U ricardo datos
>  Contraseña para usuario ricardo:
>  psql: FATAL: la autentificaci?n password fall? para el usuario
> <<ricardo>>
>
> Please, note:
>
>  1. The ó char is replaced by ?.
>  2. The « and » chars has been replaced by << and >>.
>
> Another example: the string:
>
>  database "%s" does not exist
>
> is translated into Spanish as
>
>  no existe la base de datos «%s»
>
> as you can see here:
>
>  lucid/+
>
> However, the error message is displayed like this:
>
>  ricardo(at)kadath:~$ psql -U ricardo datos
>  Contraseña para usuario ricardo:
>  psql: FATAL: no existe la base de datos <<datos>>
>
> Again, the « and » chars has been replaced by << and >>.
>
> This issue is not psql related, because I tried using pgadmin3 with the same
> results.
>
> This issue can't be reproduced using postgresql-8.3 in Karmic.

In several places in this message where it seems like you meant to
include a URL, I only see the string "lucid/+". But leaving that
aside, I don't think this is a PostgreSQL bug. Indeed, you seem to
agree, because you wrote "this issue is not psql related, because I
tried using pgadmin3 with the same results". What I suspect is
happening is that there is some other detail of your environment which
is different between your Karmic and Lucid installations which is
causing the difference. Unfortunately, I'm not quite sure what that
could be...

...Robert

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2010-04-08 02:31:30 Re: BUG #5391: coding issues displaying server messages
Previous Message Robert Haas 2010-04-08 00:30:40 Re: BUG #5404: Mirrored pgadmin GUI