> > Also, is there anyway we can detect this problem when it
> happens and
> > throw a clear error?
>
> Our documentation claims that psql will throw an error at
> startup time if you've bollixed your code page setting, but
> I'm darned if I see any code that does so. Is this something
> that happens down in the guts of Microsoft's libc equivalent,
> or is the documentation simply lying?
Not an error, but a warning. It's in src/bin/psql/startup.c, line 663
and forward. Called on line 304, right before going into the MainLoop().
//Magnus