Revert "Change mbbisearch to return the character range"
authorJohn Naylor <john.naylor@postgresql.org>
Thu, 26 Aug 2021 13:58:28 +0000 (09:58 -0400)
committerJohn Naylor <john.naylor@postgresql.org>
Thu, 26 Aug 2021 13:58:28 +0000 (09:58 -0400)
commitf8c8a8bccc23f6ca38f7a92c9a614e73fa1fcfb6
treea04dae626dd5a0aea99142bc63cb86e66130521a
parent0d906b2c0b1f0d625ff63d9ace906556b1c66a68
Revert "Change mbbisearch to return the character range"

This reverts commit 78ab944cd4b9977732becd9d0bc83223b88af9a2.

After I had committed eb0d0d2c7 and 78ab944cd, I decided to add
a sanity check for a "can't happen" scenario just to be cautious.
It turned out that it already happened in the official Unicode source
data, namely that a character can be both wide and a combining
character. This fact renders the aforementioned commits unnecessary,
so revert both of them.

Discussion:
https://www.postgresql.org/message-id/CAFBsxsH5ejH4-1xaTLpSK8vWoK1m6fA1JBtTM6jmBsLfmDki1g%40mail.gmail.com
src/common/unicode/generate-unicode_width_table.pl
src/common/wchar.c
src/include/common/unicode_width_table.h