Fix UTF-8 string storage in constant: use unsigned char.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63765 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3eadb6d5e6
commit
b37dacdca6
@ -125,13 +125,13 @@ void FileSystemTestCase::FileNameToUrlConversion()
|
||||
|
||||
void FileSystemTestCase::UnicodeFileNameToUrlConversion()
|
||||
{
|
||||
const char filename_utf8[] = {
|
||||
const unsigned char filename_utf8[] = {
|
||||
0x4b, 0x72, 0xc3, 0xa1, 0x73, 0x79, 0x50, 0xc5,
|
||||
0x99, 0xc3, 0xad, 0x72, 0x6f, 0x64, 0x79, 0x2e,
|
||||
0x6a, 0x70, 0x67, 0x00
|
||||
// KrásyPřírody.jpg
|
||||
};
|
||||
wxFileName filename(wxString::FromUTF8(filename_utf8));
|
||||
wxFileName filename(wxString::FromUTF8((const char*)filename_utf8));
|
||||
|
||||
wxString url = wxFileSystem::FileNameToURL(filename);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user