Fix wxFileSystem::FileNameToURL() for Unicode file names.
authorVáclav Slavík <vslavik@fastmail.fm>
Sun, 28 Mar 2010 15:41:35 +0000 (15:41 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sun, 28 Mar 2010 15:41:35 +0000 (15:41 +0000)
commit55129143a164e44f832c7438c79310ebe26675d5
tree4d0ea4ca27de2c43ae274ffd146809fcaf191795
parentabd5e008f16b68a26f9830c10f072322dce63972
Fix wxFileSystem::FileNameToURL() for Unicode file names.

If filename with non-ASCII characters was encoded, resulting URL
contained non-ASCII characters. But URLToFileName() expected the
input to be in UTF-8. This change fixes it by using UTF-8 for
file: URLs in FileNameToURL() too.

Fixes #11491.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63763 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/filesys.cpp