The binary search in XML256TableTranscoder.cpp fails for the last item in whichever table it is searching. This affects transcoding from Unicode to Windows-1252, IBM037, and IBM1140. For example, the last item in IBM037's table (in XMLEBCDICTranscoder.cpp) is Unicode FF5E. So the "Unicode to IBM037" transcoding will fail for Unicode FF5E. Rather than rewrite the binary search algorithm, the XML256TableTranscoder is changed to check the last item in the table if the search fails. Patch from David McCreedy.
The binary search in XML256TableTranscoder.cpp fails for the last item in whichever table it is searching.
This affects transcoding from Unicode to Windows-1252, IBM037, and IBM1140.
For example, the last item in IBM037's table (in XMLEBCDICTranscoder.cpp) is Unicode FF5E.
So the "Unicode to IBM037" transcoding will fail for Unicode FF5E.
Rather than rewrite the binary search algorithm, the XML256TableTranscoder is changed to check the last item in the table if the search fails.
Patch from David McCreedy.


git-svn-id: 3ec853389310512053d525963cab269c063bb453@173132 13f79535-47bb-0310-9956-ffa450edef68

colorer/xerces-c,ctapmex/xerces-c,Distrotech/xerces-c,Distrotech/xerces-c,colorer/xerces-c,colorer/xerces-c,Distrotech/xerces-c,ctapmex/xerces-c,ctapmex/xerces-c,Distrotech/xerces-c,colorer/xerces-c,colorer/xerces-c,Distrotech/xerces-c,ctapmex/xerces-c