]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
The end condition in the binary search loop in the new getType() was
authorSimon Tatham <anakin@pobox.com>
Mon, 20 Dec 2004 09:27:44 +0000 (09:27 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 20 Dec 2004 09:27:44 +0000 (09:27 +0000)
commite202f0f22821baadaeb0b5870446f8f04088084c
tree896ca27a1d2aa335e1424a405e4f59ce2bc9cca4
parent4cae179ff8c8198dfc7aa2fd98400bc03c940d15
The end condition in the binary search loop in the new getType() was
incorrect. I must have written that binary search idiom a hundred
times, so it's rather embarrassing that I can't _automatically_ get
it right! This was causing all kinds of characters to be classified
as ON when they should have been various other classes.

Also while I'm here, I've added another test case to utf8.txt (a
small piece of Arabic within a predominantly L->R line), and also
supplied a means to compile minibidi.c with -DTEST_GETTYPE to
produce a command-line character class lookup tool. (Not sure what
use that'll be _other_ than debugging this precise problem, but I
don't like to throw it away now I've written it :-)

[originally from svn r5016]
minibidi.c
testdata/utf8.txt