initial version of UTF-8 strings representation (still converting to wchar_t* a lot); it has to be explicitly enabled with --enable-utf8 for now
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -641,7 +641,8 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
|
||||
if (bNormalize)
|
||||
{
|
||||
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
||||
#if wxUSE_STL
|
||||
#if wxUSE_STL || wxUSE_UNICODE_UTF8
|
||||
// FIXME-UTF8: have some wxReadWriteStringBuffer instead?
|
||||
wxTmemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
|
||||
#endif
|
||||
Normalize(theBuffer, true);
|
||||
@@ -693,7 +694,8 @@ const wxChar* wxURI::ParsePath(const wxChar* uri, bool bReference, bool bNormali
|
||||
if (bNormalize)
|
||||
{
|
||||
wxStringBufferLength theBuffer(m_path, m_path.length() + 1);
|
||||
#if wxUSE_STL
|
||||
#if wxUSE_STL || wxUSE_UNICODE_UTF8
|
||||
// FIXME-UTF8: have some wxReadWriteStringBuffer instead?
|
||||
wxTmemcpy(theBuffer, m_path.c_str(), m_path.length()+1);
|
||||
#endif
|
||||
Normalize(theBuffer);
|
||||
|
Reference in New Issue
Block a user