mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-22 17:06:33 +03:00
Encodings from Karsten.
This commit is contained in:
parent
1c16009985
commit
5642a68adb
|
@ -1,3 +1,9 @@
|
||||||
|
2007-01-20 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
|
* Release 2.0.6b1.
|
||||||
|
|
||||||
|
* Added encodings patch from Karsten Hilbert.
|
||||||
|
|
||||||
2007-01-19 Federico Di Gregorio <fog@initd.org>
|
2007-01-19 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
* psycopg/adapt_list.c: added support for None. And this closes
|
* psycopg/adapt_list.c: added support for None. And this closes
|
||||||
|
|
20
NEWS
20
NEWS
|
@ -1,3 +1,23 @@
|
||||||
|
What's new in psycopg 2.0.6
|
||||||
|
---------------------------
|
||||||
|
|
||||||
|
* Full support for PostgreSQL 8.2, including NULLs in arrays.
|
||||||
|
|
||||||
|
* Support for almost all PostgreSQL encodings.
|
||||||
|
|
||||||
|
* Better management of times and dates both from Python and in Zope.
|
||||||
|
|
||||||
|
* We now have a full list of PostgreSQL error codes available by
|
||||||
|
importing the psycopg2.errorcodes module.
|
||||||
|
|
||||||
|
* Fixed some small buglets and build glitches:
|
||||||
|
- removed double mutex destroy
|
||||||
|
- removed all non-constant initializers
|
||||||
|
- fixed PyObject_HEAD declarations to avoid memory corruption
|
||||||
|
on 64 bit architectures
|
||||||
|
- fixed several Python API calls to work on 64 bit architectures
|
||||||
|
- applied compatibility macros from PEP 353
|
||||||
|
|
||||||
What's new in psycopg 2.0.5.1
|
What's new in psycopg 2.0.5.1
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
|
|
|
@ -304,14 +304,68 @@ static encodingPair encodings[] = {
|
||||||
{"LATIN6", "iso8859_10"},
|
{"LATIN6", "iso8859_10"},
|
||||||
{"LATIN7", "iso8859_13"},
|
{"LATIN7", "iso8859_13"},
|
||||||
{"LATIN8", "iso8859_14"},
|
{"LATIN8", "iso8859_14"},
|
||||||
{"LATIN9", "iso8859_15"},
|
{"LATIN9", "iso8859_15"},
|
||||||
{"UNICODE", "utf_8"},
|
{"ISO88591", "iso8859_1"},
|
||||||
|
{"ISO88592", "iso8859_2"},
|
||||||
|
{"ISO88593", "iso8859_3"},
|
||||||
|
{"ISO88595", "iso8859_5"},
|
||||||
|
{"ISO88596", "iso8859_6"},
|
||||||
|
{"ISO88597", "iso8859_7"},
|
||||||
|
{"ISO885913", "iso8859_13"},
|
||||||
|
{"ISO88598", "iso8859_8"},
|
||||||
|
{"ISO88599", "iso8859_9"},
|
||||||
|
{"ISO885914", "iso8859_14"},
|
||||||
|
{"ISO885915", "iso8859_15"},
|
||||||
|
{"UNICODE", "utf_8"}, /* Not valid in 8.2, backward compatibility */
|
||||||
{"UTF8", "utf_8"},
|
{"UTF8", "utf_8"},
|
||||||
|
{"WIN950", "cp950"},
|
||||||
/* some compatibility stuff */
|
{"Windows950", "cp950"},
|
||||||
{"LATIN-1", "latin_1"},
|
{"BIG5", "big5"},
|
||||||
|
{"EUC_JP", "euc_jp"},
|
||||||
|
{"EUC_KR", "euc_kr"},
|
||||||
|
{"GB18030", "gb18030"},
|
||||||
|
{"GBK", "gbk"},
|
||||||
|
{"WIN936", "gbk"},
|
||||||
|
{"Windows936", "gbk"},
|
||||||
|
{"JOHAB", "johab"},
|
||||||
|
{"KOI8", "koi8_r"}, /* in PG: KOI8 == KOI8R == KOI8-R == KOI8-U
|
||||||
|
but in Python there is koi8_r AND koi8_u */
|
||||||
|
{"KOI8R", "koi8_r"},
|
||||||
|
{"SJIS", "cp932"},
|
||||||
|
{"Mskanji", "cp932"},
|
||||||
|
{"ShiftJIS", "cp932"},
|
||||||
|
{"WIN932", "cp932"},
|
||||||
|
{"Windows932", "cp932"},
|
||||||
|
{"UHC", "cp949"},
|
||||||
|
{"WIN949", "cp949"},
|
||||||
|
{"Windows949", "cp949"},
|
||||||
|
{"WIN866", "cp866"},
|
||||||
|
{"ALT", "cp866"},
|
||||||
|
{"WIN874", "cp874"},
|
||||||
|
{"WIN1250", "cp1250"},
|
||||||
|
{"WIN1251", "cp1251"},
|
||||||
|
{"WIN", "cp1251"},
|
||||||
|
{"WIN1252", "cp1252"},
|
||||||
|
{"WIN1253", "cp1253"},
|
||||||
|
{"WIN1254", "cp1254"},
|
||||||
|
{"WIN1255", "cp1255"},
|
||||||
|
{"WIN1256", "cp1256"},
|
||||||
|
{"WIN1257", "cp1257"},
|
||||||
|
{"WIN1258", "cp1258"},
|
||||||
|
{"ABC", "cp1258"},
|
||||||
|
{"TCVN", "cp1258"},
|
||||||
|
{"TCVN5712", "cp1258"},
|
||||||
|
{"VSCII", "cp1258"},
|
||||||
|
|
||||||
|
/* those are missing from Python: */
|
||||||
|
/* {"EUC_CN", "?"}, */
|
||||||
|
/* {"EUC_TW", "?"}, */
|
||||||
|
/* {"LATIN10", "?"}, */
|
||||||
|
/* {"ISO885916", "?"}, */
|
||||||
|
/* {"MULE_INTERNAL", "?"}, */
|
||||||
{NULL, NULL}
|
{NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
static void psyco_encodings_fill(PyObject *dict)
|
static void psyco_encodings_fill(PyObject *dict)
|
||||||
{
|
{
|
||||||
encodingPair *enc;
|
encodingPair *enc;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user