We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b7eb3c commit 058e024Copy full SHA for 058e024
pxr/imaging/hio/glslfx.cpp
@@ -25,6 +25,7 @@
25
#include "pxr/base/tf/pathUtils.h"
26
#include "pxr/base/tf/hash.h"
27
28
+#include <filesystem>
29
#include <iostream>
30
#include <istream>
31
#include <fstream>
@@ -232,11 +233,7 @@ static unique_ptr<istream>
232
233
_CreateStreamForFile(string const& filePath)
234
{
235
if (TfIsFile(filePath)) {
-#if defined(ARCH_OS_WINDOWS)
236
- return make_unique<ifstream>(ArchWindowsUtf8ToUtf16(filePath));
237
-#else
238
- return make_unique<ifstream>(filePath);
239
-#endif
+ return make_unique<ifstream>(std::filesystem::u8path(filePath));
240
}
241
242
const shared_ptr<ArAsset> asset = ArGetResolver().OpenAsset(
0 commit comments