wstring_to_utf8str() accepts LLWString rather than std::wstring.

meow-7.2.2
Nat Goodspeed 2011-07-14 17:12:02 -04:00
parent 624c3f1a8e
commit 8ca0f872f2
1 changed files with 2 additions and 1 deletions

View File

@ -101,7 +101,8 @@ std::string native_to_string(const std::string& in)
inline
std::string native_to_string(const std::wstring& in)
{
return wstring_to_utf8str(in);
// So actually, wstring_to_utf8str() accepts LLWString rather than std::wstring...
return wstring_to_utf8str(LLWString(in.begin(), in.end()));
}
// Create a Python script file with specified content "somewhere in the