Re: BUG #1153: to_ascii() doesn't work on eth ( ) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1153: to_ascii() doesn't work on eth ( )
Date
Msg-id 27425.1084388317@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1153: to_ascii() doesn't work on eth (ðÐ)  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
List pgsql-bugs
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> Currently to_ascii changes all ð's to spaces,
> which breaks everything.

The present to_ascii() code isn't very bright ... it doesn't know about
very many encodings, and it can't handle length-changing edits, which
is what you seem to need.  Want to improve it and send a patch?  See
src/backend/utils/adt/ascii.c.

            regards, tom lane

pgsql-bugs by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1153: to_ascii() doesn't work on eth (ðÐ)
Next
From: Laurent FAILLIE
Date:
Subject: Re: BUG #1151: Initdb fails ...