Re: pltcl bug in 7.2?

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Yury Don <yura(at)vpcit(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pltcl bug in 7.2?
Date: 2002-06-20 21:19:58
Message-ID: 200206202119.g5KLJwP19317@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Should this patch be included in our code?

---------------------------------------------------------------------------

Yury Don wrote:
> Hello Tom,
>
> Friday, April 19, 2002, 8:32:16 PM, you wrote:
>
> TL> Yury Don <yura(at)vpcit(dot)ru> writes:
> >> Hello All,
> >> We have a database with koi8-r encoding, tables and fields names
> >> mostly in russian, and we have a trigger function on pltcl. With postgresql 7.1 everything
> >> worked well, but in 7.2 we are getting an error "utf_to_local: could
> >> not convert UTF-8" in the following construction
> >> foreach field [array names NEW] {
> >> if {[info exists OLD(${field})]} ....
>
> TL> Hmm. Someone added code in 7.2 to support conversion between the
> TL> database's encoding (whatever you specified with -E) and the UTF-8
> TL> encoding that Tcl wants to use all the time. Sounds like you've
> TL> found a bug in that code.
>
> I've removed conversion between the database's encoding by changing in
> pltcl.c
> #if defined(UNICODE_CONVERSION) && TCL_MAJOR_VERSION == 8 \
> to
> #if defined(UNICODE_CONVERSION_1) && TCL_MAJOR_VERSION == 8 \
> and after that an error have disappeared and everything works well.
>
> --
> Best regards,
> Yury mailto:yura(at)vpcit(dot)ru
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Elmshauser, Erik 2002-06-20 21:25:53 Re: selecting all records where a column is null
Previous Message nothanks 2002-06-20 21:16:58 Re: Help automate pg_dump