Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVCstrikes back!)

From: "Gevik Babakhani" <pgdev(at)xs4all(dot)nl>
To: "'Alvaro Herrera'" <alvherre(at)commandprompt(dot)com>
Cc: "'Magnus Hagander'" <magnus(at)hagander(dot)net>, <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVCstrikes back!)
Date: 2008-02-14 22:58:01
Message-ID: 002101c86f5d$0d848750$0a01a8c0@gevmus
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

> Hmm, interestingly you lost the diacritics here. The output
> is mangled for Saturday and Wednesday, which should read
> "Sábado" and "Miércoles"
> respectively.
>
> It is not good that the system allows you to output invalidly
> encoded data. What happens if you try setting lc_messages to
> Spanish_Spain.65001 instead?

This is because of the codepage dosbox had when I rand the test.
I ran the same test in PGAdmin and correct values are presented.

> Ideally, it should be an error to set lc_messages to a value
> that's not compatible with the current encoding. Do we do
> that currently elsewhere?

Not that I know of.

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Brendan Jurd 2008-02-14 23:25:29 Re: Show INHERIT in \du
Previous Message Tom Lane 2008-02-14 22:39:54 Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)