Fix (I think) broken usage of MultiByteToWideChar. I had missed the

Tom Lane <tgl@sss.pgh.pa.us>

Commit: ae3ff7adf79f5e2bcf6ce856cdf32abf0fe67468
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2007-11-24T21:20:07Z
Releases: 8.3.0
Fix (I think) broken usage of MultiByteToWideChar.  I had missed the
subtlety that this function only returns a null terminator if it's
fed input that includes one; which, in the usage here, it's not.
This probably fixes bugs reported by Thomas Haegi.

Files

PathChange+/−
src/backend/tsearch/ts_locale.c modified +20 −13