Re: question about char/wchar/mb utils

From: Fabien COELHO <coelho(at)cri(dot)ensmp(dot)fr>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL Developers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: question about char/wchar/mb utils
Date: 2004-03-10 16:19:17
Message-ID: Pine.GSO.4.58.0403101713560.8244@chailly99
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > If not, what are the other options?
>
> I don't think you have any: you have to use PQmblen. Depending on wchar
> facilities would be unportable even if they did everything you wanted.

I meant pg_wchar. It's in the postgres source, should be pretty portable.

> It might be convenient to build an integer array of character start
> offsets and then work with that as if it were a wchar array.

Yep, I thought about this kind of thing.

Thanks for your advice,

--
Fabien Coelho - coelho(at)cri(dot)ensmp(dot)fr

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Andreas Pflug 2004-03-10 16:37:34 Re: PITR Functional Design v2 for 7.5
Previous Message Kris Jurka 2004-03-10 16:15:56 Re: grants