Download & Extend

php 5.1.6 function basename not suport chinese file name under windows

Project:Drupal core
Version:5.1
Component:upload.module
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (won't fix)

Issue Summary

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.

Comments

#1

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

Title:upload file not suport chinese file name now» php 5.1.6 function basename not suport chinese file name under windows
Status:active» closed (won't fix)