From bc86525e52be27e781cbf03b2a0d02037333671d Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 27 Apr 2005 10:34:00 +0000 Subject: [PATCH] Bug ref: 1262 When specifiying a client_encoding, the driver will always use UTF-8. The problem is in connection.c, line number 1024, the code that reads: if (!self->client_encoding || stricmp(self->client_encoding, "UNICODE")) should read: if (!self->client_encoding || !stricmp(self->client_encoding, "UNICODE")) (the check with stricmp will always be true when client_encoding is different from UNICODE, not when it is UNICODE, wich is what's intended). [melkor odyssey.com.uy] --- connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/connection.c b/connection.c index 34a0a2b..deda580 100644 --- a/connection.c +++ b/connection.c @@ -1022,7 +1022,7 @@ another_version_retry: if (self->unicode) { if (!self->client_encoding || - stricmp(self->client_encoding, "UNICODE")) + !stricmp(self->client_encoding, "UNICODE")) { QResultClass *res; if (PG_VERSION_LT(self, 7.1)) -- 2.39.5