Commit 0b7eb3c
committed
Fix file paths with non-ASCII characters on windows
It was not possible to run an OpenUSD application from a directory with non-ASCII characters in it's name on windows. This is because LoadLibrary and std::ifstream were used with UTF-8-encoded file paths, while only system encoding and UTF-16 are supported. File paths are converted to UTF-16 now.1 parent 6284755 commit 0b7eb3c
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | | - | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
| 239 | + | |
236 | 240 | | |
237 | 241 | | |
238 | 242 | | |
| |||
0 commit comments