Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails

Поиск
Список
Период
Сортировка
От John Naylor
Тема Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails
Дата
Msg-id CANWCAZZvVYz7ZVoOMnzoXXU=HM7HT6iVvFqsSwtcZ0tfbe3rZA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails  (Nathan Bossart <nathandbossart@gmail.com>)
Ответы Re: BUG #18711: Attempting a connection with a database name longer than 63 characters now fails
Список pgsql-bugs
On Thu, Nov 21, 2024 at 2:27 PM Bertrand Drouvot
<bertranddrouvot.pg@gmail.com> wrote:

+ /*
+ * If the original name is too long and we see two consecutive bytes
+ * with their high bits set at the truncation point, we might have
+ * truncated in the middle of a multibyte character. In multibyte
+ * encodings, every byte of a multibyte character has its high bit
+ * set.

Counterexample: Shift JIS -- I don't think we can short-circuit the full check.

--
John Naylor
Amazon Web Services



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