> 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.