From 56bec42653ff7cb629294d7c997ca61a34fad819 Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sat, 18 Jun 2011 21:33:23 +0000 Subject: [PATCH] Take the environment variable into account. --- multibyte.c | 2 ++ version.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/multibyte.c b/multibyte.c index 792e915..5f65b63 100644 --- a/multibyte.c +++ b/multibyte.c @@ -521,6 +521,8 @@ const char * get_environment_encoding(const ConnectionClass *conn, const char *s #endif /* UNICODE_SUPPORT */ if (setenc && stricmp(setenc, OTHER_STRING)) return setenc; + if (wenc = getenv("PGCLIENTENCODING"), NULL != wenc) + return wenc; #ifdef WIN32 acp = GetACP(); if (acp >= 1251 && acp <= 1258) diff --git a/version.h b/version.h index 3b2f389..ebd6387 100644 --- a/version.h +++ b/version.h @@ -12,6 +12,6 @@ #define POSTGRESDRIVERVERSION "09.00.0301" #define POSTGRES_RESOURCE_VERSION "09.00.0301\0" #define PG_DRVFILE_VERSION 9,0,03,01 -#define PG_BUILD_VERSION "201106180002" +#define PG_BUILD_VERSION "201106190001" #endif -- 2.39.5