cvs: pear /I18Nv2/misc update.php

From: Date: Mon, 03 Oct 2005 15:05:37 +0000
Subject: cvs: pear /I18Nv2/misc update.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35249@lists.php.net to get a copy of this message
mike Mon Oct 3 11:05:37 2005 EDT Modified files: /pear/I18Nv2/misc update.php Log: - supply proper encoding in each function http://cvs.php.net/diff.php/pear/I18Nv2/misc/update.php?r1=1.10&r2=1.11&ty=u Index: pear/I18Nv2/misc/update.php diff -u pear/I18Nv2/misc/update.php:1.10 pear/I18Nv2/misc/update.php:1.11 --- pear/I18Nv2/misc/update.php:1.10 Mon Oct 3 10:57:37 2005 +++ pear/I18Nv2/misc/update.php Mon Oct 3 11:05:37 2005 @@ -4,7 +4,7 @@ /** * Updater for I18Nv2 * - * $Id: update.php,v 1.10 2005/10/03 14:57:37 mike Exp $ + * $Id: update.php,v 1.11 2005/10/03 15:05:37 mike Exp $ */ /** @@ -336,6 +336,7 @@ function sx_load($array, $casefunc) { + mb_regex_encoding('UTF-8'); $ar = array(); if (count($array)) foreach ($array as $p) { @@ -343,8 +344,8 @@ verbose('.'); $ar[$casefunc($p['type'])] = mb_ereg_replace('\'', '\\\'', - mb_strtoupper(mb_substr($p, 0, 1, 'UTF-8')) . - mb_substr($p, 1, mb_strlen($p), 'UTF-8')); + mb_strtoupper(mb_substr($p, 0, 1, 'UTF-8'), 'UTF-8') . + mb_substr($p, 1, mb_strlen($p, 'UTF-8'), 'UTF-8')); } } verbose("Loaded ". count($ar) ." codes");

« previous php.pear.cvs (#35249) next »