pgsql/src/include/catalog (pg_proc.h)

From: Bruce Momjian - CVS <momjian>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/include/catalog (pg_proc.h)
Date: 2000-08-04 15:45:21
Message-ID: 200008041545.e74FjLN70746@hub.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Date: Friday, August 4, 2000 @ 11:45:20
Author: momjian

Update of /home/projects/pgsql/cvsroot/pgsql/src/include/catalog
from hub.org:/home/projects/pgsql/tmp/cvs-serv70649/pgsql/src/include/catalog

Modified Files:
pg_proc.h

----------------------------- Log Message -----------------------------

to_ascii( text )

- encode 'text' from database encoding to ASCII

to_ascii('\256\341k')

to_ascii( text, int4 )

- encode 'text' from 'int4' encoding to ASCII

to_ascii('\256\341k', 8)

to_ascii( text, name )

- encode 'text' from 'name' encoding to ASCII

to_ascii('\256\341k', 'LATIN2')

Now is supported LATIN1, LATIN2, WIN1250. For other character sets I
haven't good resources. Add new encoding is easy...

If encoding is not supported returns ERROR.

Note --- not exists total corect conversion to ASCII, this function try
convert chars those is _probably_ interpret-able in ASCII for
others use ' '. But for example for all Czech characters it is
sufficient ... hmm Chinese / JAP and other complicated langs
have
bad luck here :-(

Karel

Browse pgsql-committers by date

  From Date Subject
Next Message Bruce Momjian - CVS 2000-08-04 20:22:52 pgsql/src/backend/utils/adt (ascii.c)
Previous Message Bruce Momjian - CVS 2000-08-04 15:45:12 pgsql/src/backend/utils/adt (Makefile)