Re: UNICODE characters above 0x10000

Поиск
Список
Период
Сортировка
От John Hansen
Тема Re: UNICODE characters above 0x10000
Дата
Msg-id 5066E5A966339E42AA04BA10BA706AE56085@rodrick.geeknet.com.au
обсуждение исходный текст
Ответ на UNICODE characters above 0x10000  ("John Hansen" <john@geeknet.com.au>)
Ответы Re: UNICODE characters above 0x10000  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
My apologies for not reading the code properly.

Attached patch using pg_utf_mblen() instead of an indexed table.
It now also do bounds checks.

Regards,

John Hansen

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Saturday, August 07, 2004 4:37 AM
To: John Hansen
Cc: Hackers; Patches
Subject: Re: [HACKERS] UNICODE characters above 0x10000

"John Hansen" <john@geeknet.com.au> writes:
> Attached, as promised, small patch removing the limitation, adding
> correct utf8 validation.

Surely this is badly broken --- it will happily access data outside the
bounds of the given string.  Also, doesn't pg_mblen already know the
length rules for UTF8?  Why are you duplicating that knowledge?

            regards, tom lane



Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [PATCHES] [BUGS] casting strings to multidimensional arrays yields strange
Следующее
От: Jan Wieck
Дата:
Сообщение: Re: Vacuum Cost Documentation?