[Issue 8020] std.stdio can't open UTF16 file names in Windows

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jul 6 00:54:51 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8020


Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |verylonglogin.reg at gmail.com
            Version|unspecified                 |D2
         Resolution|                            |DUPLICATE
           Severity|enhancement                 |major


--- Comment #6 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2012-07-06 11:54:47 MSD ---
(In reply to comment #5)
> Then someone just needs rig current std.file to call toUTF16/toUTFz...

std.file works good with non-ASCII strings. This is std.stdio issue.

> ...and forward the result to the right _wfopen...

And std.file uses plain WinAPI, not its buggy wrapper from Digital Mars C
runtime.

> ...This is all is just embarracing.

Yes, but std.stdio is even worse than you think (e.g. it can be 100x slower
than direct C function calls as bearophile noted about rawWrite).

*** This issue has been marked as a duplicate of issue 7648 ***

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list