poppler/TextOutputDev.cc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 67d81ed907040b22c789466f990ba0000f2df7d5
Author: Nelson Benítez León <[email protected]>
Date:   Sun Mar 24 19:44:42 2019 -0400

    findText: fix regression on case-insensitive search
    
    introduced by commit 86326030f6989c79f8dd9e91cd4c249278cdbc49
    
    The function to detect 7bit Ascii assumed the check was being
    done on a plain C char type (1 byte length) whereas the passed
    Unicode type is bigger (defined as unsigned int) and so can hold
    larger values. So fix our detection for an Ascii7 char appropriately.
    
    Fixes issue #743

diff --git a/poppler/TextOutputDev.cc b/poppler/TextOutputDev.cc
index a03e7a71..341b1c94 100644
--- a/poppler/TextOutputDev.cc
+++ b/poppler/TextOutputDev.cc
@@ -180,7 +180,7 @@
 namespace {
 
 inline bool isAscii7 (Unicode uchar) {
-  return !(uchar & 0x80);
+  return uchar < 128;
 }
 
 }
_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to