Re: [HACKERS] question about char/wchar/mb utils

2004-03-10 Thread Tom Lane
Fabien COELHO <[EMAIL PROTECTED]> writes: > 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. It might be convenient to build an integer array of character start offse

Re: [HACKERS] question about char/wchar/mb utils

2004-03-10 Thread Fabien COELHO
> > 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 buil

[HACKERS] question about char/wchar/mb utils

2004-03-10 Thread Fabien COELHO
Hello hackers, I'm working on a very small patch to add syntax error localisation on the client side in psql, as it seems to be the place. Something like: ERROR: syntax error at character 12345 QUERY: ... WHERE foo IS NUL AND ... QUERY: ^ My current issue is how to build the q