ID:               42393
 User updated by:  ivan dot delchev at softconsultgroup dot com
 Reported By:      ivan dot delchev at softconsultgroup dot com
 Status:           Assigned
 Bug Type:         mbstring related
 Operating System: Windows XP
 PHP Version:      5.2.3
 Assigned To:      hirokawa
 New Comment:

[mbstring]
; language for internal character representation.
;mbstring.language = Japanese

; internal/script encoding.
; Some encoding cannot work as internal encoding.
; (e.g. SJIS, BIG5, ISO-2022-*)
;mbstring.internal_encoding = EUC-JP

; http input encoding.
;mbstring.http_input = auto

; http output encoding. mb_output_handler must be
; registered as output buffer to function
;mbstring.http_output = SJIS

; enable automatic encoding translation according to
; mbstring.internal_encoding setting. Input chars are
; converted to internal encoding by setting this to On.
; Note: Do _not_ use automatic encoding translation for
;       portable libs/applications.
;mbstring.encoding_translation = Off

; automatic encoding detection order.
; auto means
;mbstring.detect_order = auto

; substitute_character used when character cannot be converted
; one from another
;mbstring.substitute_character = none;

; overload(replace) single byte functions by mbstring functions.
; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
; etc. Possible values are 0,1,2,4 or combination of them.
; For example, 7 for overload everything.
; 0: No overload
; 1: Overload mail() function
; 2: Overload str*() functions
; 4: Overload ereg*() functions
;mbstring.func_overload = 0

; enable strict encoding detection.
;mbstring.strict_encoding = Off


Previous Comments:
------------------------------------------------------------------------

[2007-08-23 14:30:54] [EMAIL PROTECTED]

Please show me mbstring.language setting in php.ini.


------------------------------------------------------------------------

[2007-08-23 09:06:53] [EMAIL PROTECTED]

Assigned to mbstring maintainer.

------------------------------------------------------------------------

[2007-08-23 08:06:01] ivan dot delchev at softconsultgroup dot com

Description:
------------
mb_strtoupper is doind wrong transformation for "å" in cyrillic
alphabetic. Whe wrong transformation "å"->"í".

Also the function is not UPPER the string!

Reproduce code:
---------------
// Ensure that the web browser encoding is UTF8 and edit application is
UTF8 compatible!
        $main_string = "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè
ÒÅÑÒ äà âèäèì!";
        var_dump($main_string);
        var_dump(mb_strtoupper($main_string));

Expected result:
----------------
Dumped result to be the same. And second string to be UPPER!

Actual result:
--------------
string(120) "Òîâà å òåñò. Îòíîâî Òåñò. Êàêâî áè ñå ïîëó÷èëî ñ òîçè ÒÅÑÒ
äà âèäèì!"
string(120) "Òîâà ï òïñò. Îòíîâî Òïñò. Êàêâî áè ñï ïîëó÷èëî ñ òîçè ÒÅÑÒ
äà âèäèì!"



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=42393&edit=1

Reply via email to