andrei          Wed Jun 28 14:44:36 2006 UTC

  Modified files:              
    /php-src/ext/unicode        unicode_iterators.c 
  Log:
  Use object's copied text (fixes some bug somehow).
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/unicode/unicode_iterators.c?r1=1.27&r2=1.28&diff_format=u
Index: php-src/ext/unicode/unicode_iterators.c
diff -u php-src/ext/unicode/unicode_iterators.c:1.27 
php-src/ext/unicode/unicode_iterators.c:1.28
--- php-src/ext/unicode/unicode_iterators.c:1.27        Wed Jun 28 14:12:14 2006
+++ php-src/ext/unicode/unicode_iterators.c     Wed Jun 28 14:44:36 2006
@@ -14,7 +14,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: unicode_iterators.c,v 1.27 2006/06/28 14:12:14 andrei Exp $ */
+/* $Id: unicode_iterators.c,v 1.28 2006/06/28 14:44:36 andrei Exp $ */
 
 /*
  * TODO
@@ -563,8 +563,8 @@
                UErrorCode status = U_ZERO_ERROR;
                UErrorCode status2 = U_ZERO_ERROR;
                locale = locale ? locale : UG(default_locale);
-               intern->u.brk.iter = ubrk_open(brk_type_map[intern->type - 
ITER_CHARACTER], locale, text, text_len, &status);
-               intern->u.brk.n_iter = ubrk_open(brk_type_map[intern->type - 
ITER_CHARACTER], locale, text, text_len, &status);
+               intern->u.brk.iter = ubrk_open(brk_type_map[intern->type - 
ITER_CHARACTER], locale, intern->text, intern->text_len, &status);
+               intern->u.brk.n_iter = ubrk_open(brk_type_map[intern->type - 
ITER_CHARACTER], locale, intern->text, intern->text_len, &status);
                if (!U_SUCCESS(status) || !U_SUCCESS(status2)) {
                        php_error(E_RECOVERABLE_ERROR, "Could not create 
UBreakIterator for '%s' locale: %s", locale, u_errorName(status));
                        return;

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to