iliaa           Wed Jun 16 20:17:50 2004 EDT

  Modified files:              
    /php-src/ext/standard       soundex.c 
  Log:
  Properly handly high ascii values in soundex().
  
  
http://cvs.php.net/diff.php/php-src/ext/standard/soundex.c?r1=1.23&r2=1.24&ty=u
Index: php-src/ext/standard/soundex.c
diff -u php-src/ext/standard/soundex.c:1.23 php-src/ext/standard/soundex.c:1.24
--- php-src/ext/standard/soundex.c:1.23 Thu Jan  8 03:17:34 2004
+++ php-src/ext/standard/soundex.c      Wed Jun 16 20:17:49 2004
@@ -15,7 +15,7 @@
    | Author: Bjørn Borud - Guardian Networks AS <[EMAIL PROTECTED]>       |
    +----------------------------------------------------------------------+
  */
-/* $Id: soundex.c,v 1.23 2004/01/08 08:17:34 andi Exp $ */
+/* $Id: soundex.c,v 1.24 2004/06/17 00:17:49 iliaa Exp $ */
 
 #include "php.h"
 #include <stdlib.h>
@@ -74,7 +74,7 @@
                /* BUG: should also map here accented letters used in non */
                /* English words or names (also found in English text!): */
                /* esstsett, thorn, n-tilde, c-cedilla, s-caron, ... */
-               code = toupper(str[i]);
+               code = toupper((int)(unsigned char)str[i]);
                if (code >= 'A' && code <= 'Z') {
                        if (_small == 0) {
                                /* remember first valid char */

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

Reply via email to