pgsql: Remove code points < 0x80 from character conversion tables.

From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Remove code points < 0x80 from character conversion tables.
Date: 2016-11-30 12:55:34
Message-ID: E1cC4QA-0003GN-R9@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Remove code points < 0x80 from character conversion tables.

PostgreSQL treats characters with < 0x80 leading byte as plain ASCII, and
they are not even passed to the conversion routines. There is no point in
having them in the conversion tables.

Everything in the tables were direct ASCII-ASCII mappings, except for two:
* SHIFT_JIS_2004 code point 0x5C (backslash in ASCII) was mapped to Unicode
YEN SIGN character.
* Unicode 0x5C (backslash again) was mapped to "REVERSE SOLIDUS" in
SHIFT_JIS_2004

These mappings never had any effect, so there's no functional change from
removing them.

Discussion: https://postgr.es/m/08e7892a-d55c-eefe-76e6-7910bc8dd1f3@iki.fi

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/2c09c93ce1b80a417b7c372c43f5089c0d691749

Modified Files
--------------
.../utils/mb/Unicode/euc_jis_2004_to_utf8.map | 128 ---------------------
.../utils/mb/Unicode/shift_jis_2004_to_utf8.map | 128 ---------------------
.../utils/mb/Unicode/utf8_to_euc_jis_2004.map | 128 ---------------------
.../utils/mb/Unicode/utf8_to_shift_jis_2004.map | 128 ---------------------
4 files changed, 512 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2016-11-30 14:40:39 pgsql: doc: Remove claim about large shared_buffers on Windows
Previous Message Heikki Linnakangas 2016-11-30 11:04:48 pgsql: Remove dead stuff from pgcrypto.