diff options
author | Teodor Sigaev <teodor@sigaev.ru> | 2009-03-02 15:11:25 +0000 |
---|---|---|
committer | Teodor Sigaev <teodor@sigaev.ru> | 2009-03-02 15:11:25 +0000 |
commit | 327c5e37d7c87aded85d348a3236d71a6e2d34e7 (patch) | |
tree | 2fab4ab201012b8e3c3fa78ba798bd41c2bc859b /src/backend/utils/adt/float.c | |
parent | 69daf2defeb48e26a96bd4eeeecad0f9404fd97c (diff) | |
download | postgresql-327c5e37d7c87aded85d348a3236d71a6e2d34e7.tar.gz postgresql-327c5e37d7c87aded85d348a3236d71a6e2d34e7.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/utils/adt/float.c')
0 files changed, 0 insertions, 0 deletions