php 5.1.6 function basename not suport chinese file name under windows

oscnet - March 5, 2007 - 01:39
Project:Drupal
Version:5.1
Component:upload.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:won't fix
Description

worked in 4.7.
in 5.1 when upload a file like 中文.doc, the file url change to http://www.foo.com/files/DOC and description is DOC,
in 4.7 it will be http://www.foo.com/files/中文.doc with 中文.doc as description.

#1

oscnet - March 5, 2007 - 07:49
Priority:critical» minor

I had found it is because of php function basename
basename('中文.doc') return .doc

PHP version :
5.1.6
os windows.

also had tested under linux. it worked well.

#2

oscnet - March 5, 2007 - 07:53
Title:upload file not suport chinese file name now» php 5.1.6 function basename not suport chinese file name under windows
Status:active» won't fix
 
 

Drupal is a registered trademark of Dries Buytaert.