summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-01-01 09:10:17 +0000
committerFederico Di Gregorio <fog@initd.org>2006-01-01 09:10:17 +0000
commit7db16edad31c0e47b7a714874fe2c45ccbce16f7 (patch)
treee67192e7b9f589495b20941166b05cdee74158b7 /psycopg/psycopgmodule.c
parente72f3dba4086ae705149fd70dca8acfda86eff06 (diff)
downloadpsycopg2-7db16edad31c0e47b7a714874fe2c45ccbce16f7.tar.gz
Connection encoding case fix (closes: #83).
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index eee3acb..bef1e7a 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -281,8 +281,9 @@ static encodingPair encodings[] = {
{"LATIN1", "latin_1"},
{"UNICODE", "utf_8"},
{"UTF8", "utf_8"},
+
/* some compatibility stuff */
- {"latin-1", "latin_1"},
+ {"LATIN-1", "latin_1"},
{NULL, NULL}
};