Correct potential infinite loop in pg_utf2wchar_with_len;
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Apr 1999 20:35:51 +0000 (20:35 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 25 Apr 1999 20:35:51 +0000 (20:35 +0000)
commit398b947c0018a14acff33e12ff95b5b59ffc424d
tree7eacc8eadcc98990938adf7064d6844a2bc84d39
parent804d9e6703497de13fde26b08c77d774ef539ea0
Correct potential infinite loop in pg_utf2wchar_with_len;
it failed to cover the case where high bits of char are 100 or 101.
Not sure if fix is right, but it agrees with pg_utf_mblen ... and it
doesn't lock up ...
src/backend/utils/mb/wchar.c