Re: Fwd: Bug#380047: libpq-dev: no declaration for pg_encoding_to_char

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: PostgreSQL Bugs <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: Fwd: Bug#380047: libpq-dev: no declaration for pg_encoding_to_char
Date: 2006-07-30 01:41:23
Message-ID: 20060730014122.GB8140@surnet.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Martin Pitt wrote:

Hi,

> I recently got this bug report about a missing declaration of
> pg_encoding_to_char() in the official client library headers
> (PostgreSQL 8.1.4). This causes some build problems of depending
> packages like the ruby bindings [1].
>
> So, should this function be declared in libpq-fe.h (or pg_wchar.h
> included into the postgresql client development package), or is this
> function obsolete?

This function has been defined in pg_wchar.h for a long time, and is
certainly not deprecated. OTOH I don't think it makes much sense to put
that function declaration in libpq-fe.h, because it's not exclusive of
frontends.

The correct solution seems to be that the libpq-dev package must include
mb/pg_wchar.h. Not sure how reasonable that is for your package set; if
there's a package with the rest of the headers, probably it'll have to
depend on libpq-dev or something.

> [1] http://bugs.debian.org/18858

I find this one more closely related to the topic at hand:

http://bugs.debian.org/318858

--
Alvaro Herrera http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Martin Pitt 2006-07-30 08:49:50 Re: Fwd: Bug#380047: libpq-dev: no declaration for pg_encoding_to_char
Previous Message Jon Watte 2006-07-29 15:44:11 BUG #2556: ODBC driver version 2.00 doesn't publish functions correctly