icu68.patch 688 B

123456789101112131415161718
  1. Regressed by https://github.com/unicode-org/icu/commit/c3fe7e09d844
  2. libcdr_utils.cpp:111:35: error: use of undeclared identifier 'TRUE'
  3. ucsdet_enableInputFilter(csd, TRUE);
  4. ^
  5. --- src/lib/libcdr_utils.cpp.orig 2020-02-02 15:30:44 UTC
  6. +++ src/lib/libcdr_utils.cpp
  7. @@ -108,7 +108,7 @@ static unsigned short getEncoding(const unsigned char
  8. csd = ucsdet_open(&status);
  9. if (U_FAILURE(status) || !csd)
  10. return 0;
  11. - ucsdet_enableInputFilter(csd, TRUE);
  12. + ucsdet_enableInputFilter(csd, true);
  13. ucsdet_setText(csd, (const char *)buffer, bufferLength, &status);
  14. if (U_FAILURE(status))
  15. throw libcdr::EncodingException();