diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2009-03-02 15:13:17 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2009-03-02 15:13:17 +0000 |
commit | 8fcdac99876df0bd04b8dd48fc37d8a286231033 (patch) | |
tree | 8c88a874f08928dcb6826a8c44bd27206ec3275c /src/backend/access/gist/gistsplit.c | |
parent | 08a09890146c54a6db9dae54315faad846abfbef (diff) | |
download | postgresql-8fcdac99876df0bd04b8dd48fc37d8a286231033.tar.gz postgresql-8fcdac99876df0bd04b8dd48fc37d8a286231033.zip |
Fix usage of char2wchar/wchar2char. Changes:
- pg_wchar and wchar_t could have different size, so char2wchar
doesn't call pg_mb2wchar_with_len to prevent out-of-bound
memory bug
- make char2wchar/wchar2char symmetric, now they should not be
called with C-locale because mbstowcs/wcstombs oftenly doesn't
work correct with C-locale.
- Text parser uses pg_mb2wchar_with_len directly in case of
C-locale and multibyte encoding
Per bug report by Hiroshi Inoue <inoue@tpf.co.jp> and
following discussion.
Backpatch up to 8.2 when multybyte support was implemented in tsearch.
Diffstat (limited to 'src/backend/access/gist/gistsplit.c')
0 files changed, 0 insertions, 0 deletions