aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2002-07-18 04:16:07 +0000
committerTatsuo Ishii <ishii@postgresql.org>2002-07-18 04:16:07 +0000
commit3d7a9ac76977959eabf4bbbc675fb0e153b36aa2 (patch)
tree21c795cf537f291a1f65c398a8a216874e825970 /src
parent404e9a12a5aef6d77af9b407c5737cb688f8e1cc (diff)
downloadpostgresql-3d7a9ac76977959eabf4bbbc675fb0e153b36aa2.tar.gz
postgresql-3d7a9ac76977959eabf4bbbc675fb0e153b36aa2.zip
Fix breakage for pltcl modules. pg_get_enconv_by_encoding() has been
changed since CREATE CONVERSION supported.
Diffstat (limited to 'src')
-rw-r--r--src/pl/tcl/pltcl.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/src/pl/tcl/pltcl.c b/src/pl/tcl/pltcl.c
index 9e67e913ea4..f70751d23f6 100644
--- a/src/pl/tcl/pltcl.c
+++ b/src/pl/tcl/pltcl.c
@@ -31,7 +31,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.56 2002/06/15 19:54:24 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/pl/tcl/pltcl.c,v 1.57 2002/07/18 04:16:07 ishii Exp $
*
**********************************************************************/
@@ -65,20 +65,16 @@
#include "mb/pg_wchar.h"
-static pg_enconv *tcl_enconv;
-
static unsigned char *
utf_u2e(unsigned char *src)
{
- return pg_do_encoding_conversion(src, strlen(src),
- NULL, tcl_enconv->from_unicode);
+ return pg_do_encoding_conversion(src, strlen(src), PG_UNICODE, GetDatabaseEncoding());
}
static unsigned char *
utf_e2u(unsigned char *src)
{
- return pg_do_encoding_conversion(src, strlen(src),
- tcl_enconv->to_unicode, NULL);
+ return pg_do_encoding_conversion(src, strlen(src), GetDatabaseEncoding(), PG_UNICODE);
}
#define PLTCL_UTF
@@ -211,14 +207,6 @@ pltcl_init_all(void)
if (!pltcl_firstcall)
return;
-#ifdef PLTCL_UTF
- /************************************************************
- * Do unicode conversion initialization
- ************************************************************/
-
- tcl_enconv = pg_get_enconv_by_encoding(GetDatabaseEncoding());
-#endif
-
/************************************************************
* Create the dummy hold interpreter to prevent close of
* stdout and stderr on DeleteInterp