Re: warning about console code page on starting psql

From: David G Johnston <david(dot)g(dot)johnston(at)gmail(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: warning about console code page on starting psql
Date: 2014-12-17 05:40:54
Message-ID: 1418794854447-5831041.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-novice

Going from memory here but...

The window is which the command prompt appears is called the console. When
you type psql at the command prompt you are now running a console
application in that same console. You can have more than one running
console and each one is independent. Any changes to the console, e.g. via
the "cmd.exe /c chcp 1252" command, only persist as long as that console
window remains open. Going into and out of a console application should not
make a difference, only closing the actual window. Same goes for the font -
it is a property of the console and not psql directly.

Since the database server uses the Windows code page you want your console
to match. So given said warning you want to supply the current Windows
value to the chcp command.

The message and documentation could probably be improved though I'm not
positive what I am saying is 100% correct as I have never encountered this
problem - because I've never used psql on Windows...

David J.

--
View this message in context: http://postgresql.nabble.com/warning-about-console-code-page-on-starting-psql-tp5831036p5831041.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-docs by date

  From Date Subject
Next Message David G Johnston 2014-12-17 05:55:07 Re: warning about console code page on starting psql
Previous Message Stephen Cook 2014-12-17 05:26:02 Re: warning about console code page on starting psql

Browse pgsql-novice by date

  From Date Subject
Next Message David G Johnston 2014-12-17 05:55:07 Re: warning about console code page on starting psql
Previous Message Stephen Cook 2014-12-17 05:26:02 Re: warning about console code page on starting psql