Fix (I think) broken usage of MultiByteToWideChar. I had missed the
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Nov 2007 21:20:07 +0000 (21:20 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 24 Nov 2007 21:20:07 +0000 (21:20 +0000)
commit922d2f0bb9bbc54e88fe9ad2b23a81ba7299d197
tree128af1ec2b594c132935d90f1920fc265bd69a41
parentb72f8372e7901ad9f80ca5aee72201322f324161
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.
src/backend/tsearch/ts_locale.c