Fix for rearranging encoding id ISO-8859-5 to ISO-8859-8.
authorTatsuo Ishii <ishii@postgresql.org>
Sat, 24 Dec 2005 00:49:18 +0000 (00:49 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Sat, 24 Dec 2005 00:49:18 +0000 (00:49 +0000)
commit701232c92b3868ca6aa602471d5aa51ea6953d40
tree6f674fb17596c4e6d59c97aae4080e231963ce23
parentd69d75db77ba1ae95f5c4fe4090ef09e7e2a4587
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.
src/backend/utils/mb/conversion_procs/utf8_and_iso8859/utf8_and_iso8859.c