Re: Bug in UTF8-Validation Code?

Поиск
Список
Период
Сортировка
От Albe Laurenz
Тема Re: Bug in UTF8-Validation Code?
Дата
Msg-id AFCCBB403D7E7A4581E48F20AF3E5DB2020DE687@EXADV1.host.magwien.gv.at
обсуждение исходный текст
Ответ на Re: Bug in UTF8-Validation Code?  (Tatsuo Ishii <ishii@postgresql.org>)
Список pgsql-hackers
Martijn van Oosterhout wrote:
> So your implemntation is simply:
> 1. Take number and make UTF-8 string
> 2. Convert it to database encoding.

Aah, now I can spot where the misunderstanding is.
That's not what I mean.

I mean that chr() should simply 'typecast' to "char".

So when the database encoding is UTF8, I want
chr(14844588) to return a Euro sign, and when the encoding
is LATIN9, then chr(14844588) should either yield the 'not'
sign (UNICODE 0xAC) or an error message, depending on whether
we want chr() to operate mod 256 like Oracle has it for
single byte character sets or not, while chr(164) should
return the Euro sign for LATIN9 database encoding.

Yours,
Laurenz Albe


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Suresh
Дата:
Сообщение: Postgres optimizer
Следующее
От: "Marko Kreen"
Дата:
Сообщение: Re: What X86/X64 OS's do we need coverage for?