openbsd-ports/textproc/icu4c/patches/patch-source_test_intltest_usettest_cpp
landry eccda17813 Update to icu4c 4.0.1, from MAINTAINER :
- Link with -pthread instead of -lphtread.
- Use VERSION (consistent with other ports, although it's still not a
  rule) and propagate it where needed.
- Propagate SO_VERSION using MAKE_FLAGS.
- Fix MASTER_SITES.
- Remove a bunch of patches that prevented .so links to be created, use
  a post-install target to remove them instead.

Discussed with and ok ajacoutot@
2009-01-27 22:11:15 +00:00

16 lines
732 B
Plaintext

$OpenBSD: patch-source_test_intltest_usettest_cpp,v 1.1 2009/01/27 22:11:15 landry Exp $
Fix for regression tests
--- source/test/intltest/usettest.cpp.orig Sat Jan 24 16:44:37 2009
+++ source/test/intltest/usettest.cpp Sat Jan 24 16:35:13 2009
@@ -1641,7 +1641,7 @@ void UnicodeSetTest::TestSurrogate() {
for (int i=0; DATA[i] != 0; ++i) {
UErrorCode ec = U_ZERO_ERROR;
logln((UnicodeString)"Test pattern " + i + " :" + UnicodeString(DATA[i], -1, US_INV));
- UnicodeSet set(UnicodeString(DATA[i], -1, US_INV), ec);
+ UnicodeSet set(UnicodeString((const char *)DATA[i], -1, US_INV), ec);
if (U_FAILURE(ec)) {
errln("FAIL: UnicodeSet constructor");
continue;