Bug 12898 – `std.process.browse` expects URL to be encoded in CP_ACP on Windows instead of UTF-8

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
Windows
Creation time
2014-06-12T13:41:00Z
Last change time
2014-06-13T05:48:04Z
Assigned to
nobody
Creator
verylonglogin.reg

Comments

Comment #0 by verylonglogin.reg — 2014-06-12T13:41:36Z
This should open Russian version `Character encoding` Wikipedia page: --- import std.process; void main() { browse("http://ru.wikipedia.org/wiki/Кодировка"); } ---
Comment #1 by verylonglogin.reg — 2014-06-12T13:45:10Z
Comment #2 by github-bugzilla — 2014-06-12T22:30:03Z
Commit pushed to master at https://github.com/D-Programming-Language/phobos https://github.com/D-Programming-Language/phobos/commit/176f1246f3ecc9507b88fb7aa68e8d17a2fbaaa6 Issue 12898 - `std.process.browse` expects URL to be encoded in CP_ACP on Windows instead of UTF-8 Use Unicode version of `ShellExecute` in `std.process.browse`. Also remove needless `ShellExecuteA` declaration.