aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-12-27 20:13:48 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-12-27 20:13:48 +0000
commit39475990e0d88f285340d5b1ccd76922d86594f9 (patch)
tree5320a93b44384325d3608140434adf60a716e675
parent370f90970dc3a3c009e3147468629187ada0a614 (diff)
downloadpostgresql-39475990e0d88f285340d5b1ccd76922d86594f9.tar.gz
postgresql-39475990e0d88f285340d5b1ccd76922d86594f9.zip
Move info about psql console code page issues out of install-win32.sgml,
where it doesn't belong, and put it in the psql reference page.
-rw-r--r--doc/src/sgml/install-win32.sgml34
-rw-r--r--doc/src/sgml/ref/psql-ref.sgml36
2 files changed, 38 insertions, 32 deletions
diff --git a/doc/src/sgml/install-win32.sgml b/doc/src/sgml/install-win32.sgml
index 55f3064eb32..cb79912a38e 100644
--- a/doc/src/sgml/install-win32.sgml
+++ b/doc/src/sgml/install-win32.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.22 2004/12/26 23:06:56 tgl Exp $
+$PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.23 2004/12/27 20:13:47 tgl Exp $
-->
<chapter id="install-win32">
@@ -43,7 +43,7 @@ $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.22 2004/12/26 23:06:56 tg
</para>
<para>
- To build everything using using <productname>Borland
+ To build everything using <productname>Borland
C++</productname>, change into the <filename>src</filename> directory
and type the command
<screen>
@@ -77,7 +77,7 @@ $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.22 2004/12/26 23:06:56 tg
<term><filename>interfaces\libpq\Release\libpq.lib</filename></term>
<listitem>
<para>
- Static library version of the frontend library
+ Static version of the frontend library
</para>
</listitem>
</varlistentry>
@@ -118,34 +118,6 @@ $PostgreSQL: pgsql/doc/src/sgml/install-win32.sgml,v 1.22 2004/12/26 23:06:56 tg
C++, just right-click on the project and choose to add it.)
</para>
- <para>
- <application>psql</application> is compiled as a <quote>console
- application</>. As the Windows console windows use a different
- encoding than the rest of the system, you must take special care
- when using 8-bit characters within <application>psql</application>.
- If <application>psql</application> detects a problematic
- console code page, it will warn you at startup. To change the
- console code page, two things are necessary:
-
- <itemizedlist>
- <listitem>
- <para>
- Set the code page by entering <userinput>cmd.exe /c chcp
- 1252</userinput>. (1252 is a code page that is appropriate for
- German; replace it with your value.) If you are using Cygwin,
- you can put this command in <filename>/etc/profile</filename>.
- </para>
- </listitem>
-
- <listitem>
- <para>
- Set the console font to <quote>Lucida Console</>, because the
- raster font does not work with the ANSI code page.
- </para>
- </listitem>
- </itemizedlist>
- </para>
-
</chapter>
<!-- Keep this comment at the end of the file
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml
index babba041d30..92fdd62ef20 100644
--- a/doc/src/sgml/ref/psql-ref.sgml
+++ b/doc/src/sgml/ref/psql-ref.sgml
@@ -1,5 +1,5 @@
<!--
-$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.124 2004/12/13 18:05:10 petere Exp $
+$PostgreSQL: pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.125 2004/12/27 20:13:48 tgl Exp $
PostgreSQL documentation
-->
@@ -2577,6 +2577,40 @@ Field separator is "oo".
</refsect1>
+ <refsect1>
+ <title>Notes for Windows users</title>
+
+ <para>
+ <application>psql</application> is built as a <quote>console
+ application</>. Since the Windows console windows use a different
+ encoding than the rest of the system, you must take special care
+ when using 8-bit characters within <application>psql</application>.
+ If <application>psql</application> detects a problematic
+ console code page, it will warn you at startup. To change the
+ console code page, two things are necessary:
+
+ <itemizedlist>
+ <listitem>
+ <para>
+ Set the code page by entering <userinput>cmd.exe /c chcp
+ 1252</userinput>. (1252 is a code page that is appropriate for
+ German; replace it with your value.) If you are using Cygwin,
+ you can put this command in <filename>/etc/profile</filename>.
+ </para>
+ </listitem>
+
+ <listitem>
+ <para>
+ Set the console font to <quote>Lucida Console</>, because the
+ raster font does not work with the ANSI code page.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+
+ </refsect1>
+
+
<refsect1 id="APP-PSQL-examples">
<title id="APP-PSQL-examples-title">Examples</title>