Re: More Code Page wierdness

"Magnus Hagander" <[email protected]>
Newsgroups gmane.comp.db.postgresql.devel.win32
Message-ID <[email protected]>
> > 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().
> 
> Ah-hah.  I was grepping for "code page" not "codepage".  
> (BTW, this warning appears not to be internationalized --- 
> boo hiss --- and we will need to adjust it to point to 
> whereever we decide to put the documentation about this issue.)
> 
> So: what the heck does it mean when GetACP() != GetConsoleCP() ?
> I suppose those control different areas of functionality, but 
> what exactly?

Dunno who's responsible for that code initially ;-)

Anyway.
GetACP() returns the "current ANSI codepage for the system".
GetConsoleCP() "retrieves the input code page used by the console"

The console by default uses what's caled the OEM charset. I assume GetACP() returns the default charset for *non-console* programs.

And no, I don't know exactly why that matters in the case of psql. I've always been able to "fix" thing by just changing the font to Lucida console. But I only use very few characters that are affected by this (åäö only).

//Magnus

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to [email protected])
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.