Clean up ts_locale.h/.c. Fix broken and not-consistent-across-platforms
Tom Lane <tgl@sss.pgh.pa.us>
Clean up ts_locale.h/.c. Fix broken and not-consistent-across-platforms behavior of wchar2char/char2wchar; this should resolve bug #3730. Avoid excess computations of pg_mblen in t_isalpha and friends. Const-ify APIs where possible.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/tsearch/ts_locale.c | modified | +121 −64 |
| src/backend/tsearch/ts_utils.c | modified | +2 −2 |
| src/backend/tsearch/wparser_def.c | modified | +3 −3 |
| src/include/tsearch/ts_locale.h | modified | +22 −41 |
| src/include/tsearch/ts_public.h | modified | +2 −2 |