Edit report at https://bugs.php.net/bug.php?id=61408&edit=1

 ID:                 61408
 Updated by:         cataphr...@php.net
 Reported by:        inge at upandforward dot com
 Summary:            Character set failure
-Status:             Open
+Status:             Feedback
 Type:               Bug
 Package:            Strings related
 Operating System:   Linux Ubuntu
 PHP Version:        5.3.10
 Block user comment: N
 Private report:     N

 New Comment:

What's the return value of setlocale? Does locale -a show that locale?


Previous Comments:
------------------------------------------------------------------------
[2012-03-15 20:14:36] inge at upandforward dot com

Description:
------------
---
>From manual page: 
>http://www.php.net/function.basename#refsect1-function.basename-seealso
---
Even if I have defined setlocale('nb_NO.utf8");
the basename functions strips off some national characters.


Test script:
---------------
echo basename('/directory/Øving.png");

Expected result:
----------------
Øving.png

Actual result:
--------------
ving.png


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



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

Reply via email to