Bug #61408 [Opn->Fbk]: Character set failure

From: Date: Thu, 15 Mar 2012 21:28:20 +0000
Subject: Bug #61408 [Opn->Fbk]: Character set failure
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168524@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61408&edit=1

 ID:                 61408
 Updated by:         cataphract@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


Thread (8 messages)

« previous php.bugs (#168524) next »