From fb074439ae0004ff8772cc74cf6fd2ce081fad6b Mon Sep 17 00:00:00 2001
From: Magnus Hagander <magnus@hagander.net>
Date: Wed, 10 Oct 2007 11:50:07 +0000
Subject: [PATCH] Add missing codepage numbers for Windows.

Dave Page
---
 src/port/chklocale.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/port/chklocale.c b/src/port/chklocale.c
index 5dbba73851..02251f7fb0 100644
--- a/src/port/chklocale.c
+++ b/src/port/chklocale.c
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *	  $PostgreSQL: pgsql/src/port/chklocale.c,v 1.4 2007/10/03 17:16:39 tgl Exp $
+ *	  $PostgreSQL: pgsql/src/port/chklocale.c,v 1.5 2007/10/10 11:50:07 mha Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -72,26 +72,32 @@ static const struct encoding_match encoding_match_list[] = {
 
 	{PG_UTF8, "UTF-8"},
 	{PG_UTF8, "utf8"},
+	{PG_UTF8, "CP65001"},
 
 	{PG_LATIN1, "ISO-8859-1"},
 	{PG_LATIN1, "ISO8859-1"},
 	{PG_LATIN1, "iso88591"},
+	{PG_LATIN1, "CP28591"},
 
 	{PG_LATIN2, "ISO-8859-2"},
 	{PG_LATIN2, "ISO8859-2"},
 	{PG_LATIN2, "iso88592"},
+	{PG_LATIN2, "CP28592"},
 
 	{PG_LATIN3, "ISO-8859-3"},
 	{PG_LATIN3, "ISO8859-3"},
 	{PG_LATIN3, "iso88593"},
+	{PG_LATIN3, "CP28593"},
 
 	{PG_LATIN4, "ISO-8859-4"},
 	{PG_LATIN4, "ISO8859-4"},
 	{PG_LATIN4, "iso88594"},
+	{PG_LATIN4, "CP28594"},
 
 	{PG_LATIN5, "ISO-8859-9"},
 	{PG_LATIN5, "ISO8859-9"},
 	{PG_LATIN5, "iso88599"},
+	{PG_LATIN5, "CP28599"},
 
 	{PG_LATIN6, "ISO-8859-10"},
 	{PG_LATIN6, "ISO8859-10"},
@@ -108,6 +114,7 @@ static const struct encoding_match encoding_match_list[] = {
 	{PG_LATIN9, "ISO-8859-15"},
 	{PG_LATIN9, "ISO8859-15"},
 	{PG_LATIN9, "iso885915"},
+	{PG_LATIN9, "CP28605"},
 
 	{PG_LATIN10, "ISO-8859-16"},
 	{PG_LATIN10, "ISO8859-16"},
@@ -132,18 +139,22 @@ static const struct encoding_match encoding_match_list[] = {
 	{PG_ISO_8859_5, "ISO-8859-5"},
 	{PG_ISO_8859_5, "ISO8859-5"},
 	{PG_ISO_8859_5, "iso88595"},
+	{PG_ISO_8859_5, "CP28595"},
 
 	{PG_ISO_8859_6, "ISO-8859-6"},
 	{PG_ISO_8859_6, "ISO8859-6"},
 	{PG_ISO_8859_6, "iso88596"},
+	{PG_ISO_8859_6, "CP28596"},
 
 	{PG_ISO_8859_7, "ISO-8859-7"},
 	{PG_ISO_8859_7, "ISO8859-7"},
 	{PG_ISO_8859_7, "iso88597"},
+	{PG_ISO_8859_7, "CP28597"},
 
 	{PG_ISO_8859_8, "ISO-8859-8"},
 	{PG_ISO_8859_8, "ISO8859-8"},
 	{PG_ISO_8859_8, "iso88598"},
+    {PG_ISO_8859_8, "CP28598"},
 
 	{PG_SJIS, "SJIS"},
 	{PG_SJIS, "PCK"},