Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence
Дата
Msg-id 20100820.082957.113300986.t-ishii@sraoss.co.jp
обсуждение исходный текст
Ответ на Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: COPY FROM/TO losing a single byte of a multibyte UTF-8 sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
> We generally assume that in server-safe encodings, the ctype.h functions
> will behave sanely on any single-byte value.

I think this "wisedom" is only true for C locale.  I'm not surprised
all that it does not work with non C locales.

From array_funcs.c:
    while (isspace((unsigned char) *p))        p++;

IMO this should be something like:
    while (isspace((unsigned char) *p))        p += pg_mblen(p);
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


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

Предыдущее
От: Thue Janus Kristensen
Дата:
Сообщение: Re: BUG #5622: Query failed: server closed the connection unexpectedly
Следующее
От: Albert Ullrich
Дата:
Сообщение: Re: BUG #5626: Parallel pg_restore fails with "tuple concurrently updated"