SL-18837: On Windows, NamedTempFile must convert from wstring

meow-7.2.2
Nat Goodspeed 2023-06-06 13:34:01 -04:00
parent c4366378b6
commit e63c571d13
1 changed files with 3 additions and 1 deletions

View File

@ -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 @@ public:
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()
{