Re: Alter strings that don't belong to the application

From: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Alter strings that don't belong to the application
Date: 2003-06-12 14:15:29
Message-ID: Pine.LNX.4.44.0306121605520.13332-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 12 Jun 2003, Tom Lane wrote:

> I'd call that a bug in psql. Where do you see it happening exactly?

It's the utf-8 validation function (mbvalidate) that removes characters
that it does not understand.

> No, I think the return value ought to be treated as const char *.
> We're hesitant to actually declare it that way because we'd cause compile
> errors in many client applications that aren't being const-paranoid.

An easy solution is to add the const as a macro that can be turned off by
those apps.

ps. I'm being blacklisted by your email server. The reason I get back is
that my letter come from a telia IP-number. Telia is the major ISP in
Sweden with something like 80-90% of the market. I actually don't belong
to those since I use another ISP (bostream), but I guess they got their
adresses from telia or something. Well, not really a problem. I send
everything to the list anyway.

--
/Dennis

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2003-06-12 14:29:31 Re: Pre-allocation of shared memory ...
Previous Message Jon Lapham 2003-06-12 14:13:43 Re: Pre-allocation of shared memory ...