diff --git a/indra/test/namedtempfile.h b/indra/test/namedtempfile.h index 8cd6c990dc526095c19521117e35baf22a724674..da4fec97c87c0e1ad65439be464137cd2b33535c 100644 --- a/indra/test/namedtempfile.h +++ b/indra/test/namedtempfile.h @@ -13,6 +13,7 @@ #define LL_NAMEDTEMPFILE_H #include "llerror.h" +#include "llstring.h" #include "stringize.h" #include <string> #include <boost/filesystem.hpp> @@ -64,7 +65,8 @@ class NamedTempFile: public boost::noncopyable boost::filesystem::remove(mPath); } - virtual std::string getName() const { return mPath.native(); } + // On Windows, path::native() returns a wstring + std::string getName() const { return ll_convert<std::string>(mPath.native()); } void peep() {