Fix for rearranging encoding id ISO-8859-5 to ISO-8859-8.

Tatsuo Ishii <ishii@postgresql.org>

Commit: 5343bcadd6d4c6151b68f80f0b0c4b4c01450d67
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: 2005-12-24T00:49:18Z
Releases: 8.1.2
Fix for rearranging encoding id ISO-8859-5 to ISO-8859-8.
Also make the code more robust by searching for target encoding
in the internal charset map.

Problem reported by Sagi Bashari on 2005/12/21.
See "[BUGS] BUG #2120: Crash when doing UTF8<->ISO_8859_8 encoding conversion"
on pgsql-bugs list for more details.

Back patch for 8.1_STABLE.

Files