Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVCstrikes back!) - Mailing list pgsql-patches

From Gevik Babakhani
Subject Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVCstrikes back!)
Date
Msg-id 002101c86f5d$0d848750$0a01a8c0@gevmus
Whole thread Raw
In response to Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)  (Alvaro Herrera <alvherre@commandprompt.com>)
List 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.



pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)
Next
From: "Hiroshi Saito"
Date:
Subject: Re: Fix for 8.3 MSVC locale (Was [HACKERS] NLS on MSVC strikes back!)