Bug ref: 1262
authorDave Page <dpage@pgadmin.org>
Wed, 27 Apr 2005 10:34:00 +0000 (10:34 +0000)
committerDave Page <dpage@pgadmin.org>
Wed, 27 Apr 2005 10:34:00 +0000 (10:34 +0000)
commitbc86525e52be27e781cbf03b2a0d02037333671d
tree2cea2c6a8d21a5bd05b9bf6c2e19d1c0badc5518
parent09140b654b6ce92aef6c8ceb747228fd035ebd9b
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 <NOSPAM> odyssey.com.uy]
connection.c