Req #63401 [Opn->Dup]: patch for access non-ANSI files/directories

From: Date: Tue, 23 Apr 2013 16:24:40 +0000
Subject: Req #63401 [Opn->Dup]: patch for access non-ANSI files/directories
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-178599@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=63401&edit=1

 ID:                 63401
 Updated by:         pajoye@php.net
 Reported by:        j4f at bk dot ru
 Summary:            patch for access non-ANSI files/directories
-Status:             Open
+Status:             Duplicate
 Type:               Feature/Change Request
 Package:            *Directory/Filesystem functions
 Operating System:   windows
 PHP Version:        5.4.8
 Block user comment: N
 Private report:     N

 New Comment:

Thanks for your patch!

Sadly it is only a very small part of what has to be done to support Unicode 
filepaths.

I mark this bug as duplicate as there is already an open issue/feature request 
about it. More details about unicode for windows file operations will be added in 
the wiki, most likely for php-next.


Previous Comments:
------------------------------------------------------------------------
[2012-10-30 21:57:47] j4f at bk dot ru

Description:
------------
Windows version of PHP have an very old bug, that not allowing to open files (directories) that
contains UNICODE symbols. It's because it use ANSI functions to operate with filesystem. I
analyze problem, and propose next solution: take UTF-8 PHP strings, convert them in code to wchar_t,
and use windows UNICODE functions for access filesystem.
My patch demonstrates fully functional workaround. But it is not well integrated nor optimized.
Please, analyze and integrate this solution into mainline codebase, because it a very demanded
feature.
Best regards, Yury Presnyakov.

Expected result:
----------------
This patch transparently converts UTF-8 strings to UNICODE strings (and back, if needed). That made
possible to access in windows files that contains non ANSI characters.



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



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


Thread (2 messages)

« previous php.bugs (#178599) next »