From: Andrei Zmievski Date: Thu, 2 Mar 2006 20:40:45 +0000 (+0000) Subject: Should use word break iteration instead of title, as title one has been X-Git-Tag: RELEASE_1_2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20301a153f8dca14c953a833f00bc5398784368e;p=php Should use word break iteration instead of title, as title one has been deprecated since Unicode 3.2> --- diff --git a/ext/unicode/locale.c b/ext/unicode/locale.c index c85bd1406d..967a64e363 100644 --- a/ext/unicode/locale.c +++ b/ext/unicode/locale.c @@ -99,7 +99,7 @@ PHPAPI UChar* php_u_strtotitle(UChar **s, int32_t *len, const char* locale) UBreakIterator *brkiter; dest_len = *len; - brkiter = ubrk_open(UBRK_TITLE, locale, *s, *len, &status); + brkiter = ubrk_open(UBRK_WORD, locale, *s, *len, &status); while (1) { status = U_ZERO_ERROR; dest = eurealloc(dest, dest_len+1);