Repository navigation
xgameruntime_gamesave_test: build the save folder's path from char8_t, not the deprecated u8path (C4996) - #4931
etcetera-yt wants to merge 1 commit into
Conversation
… instead of the deprecated u8path std::filesystem::u8path is deprecated in C++20 (MSVC C4996 / STL4021), the only warning in this test since de67135. Constructing the path from the UTF-8 text as char8_t is C++20's replacement and decodes the same way: with a TMP folder named outside the ANSI code page, the test still passes, while a plain path(folder.c_str()) fails the folder check. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD
|
Independent Windows/MSVC check at
One unrelated observation: the test still uses a fixed AI-assisted verification; no game data used. |
|
Full build and full ctest on this branch (
AI-assisted (Claude Code). |
|
APPROVE. One file, MSVC 19.51 / Ninja RelWithDebInfo: Not tested here: GPU, Linux (file is Approve. AI-assisted review, no game files. |
|
Tested
Code read of AI-assisted. |
|
Thanks @tupacfan04 for the review and the MSVC 19.51 check, and @MatyEjsr for the RTX 3090 run. AI-assisted (Claude Code). |
Claimed in the coordination issue as: new BUILD item (claim).
What and why
runtime/test/xgameruntime_gamesave_test.cpp:293(added in de67135) checks the save folder withstd::filesystem::u8path(folder.c_str()).u8pathis deprecated in C++20, so every MSVC build prints:The path is now built from the same UTF-8 text as
char8_t, the C++20 replacement, which decodes the same way. Test-only, one expression.Tested
NVIDIA GeForce RTX 5060 Ti, driver 621.14, Windows 10 19045, MSVC (VS 2022 Build Tools), RelWithDebInfo, branch on
maind974c88a.xgameruntime_gamesave_testgives the C4996 above, and the test passes 50 checks with 0 failures.TMP/TEMPpointing at a folder namedtmp_Ω東京(outside this PC's code page 1252), so the save folder it checks is non-ASCII.std::filesystem::path(folder.c_str()), which decodes as the ANSI code page:FAIL FilesGetFolderWithUiResult returns a folder that exists, 1 failure, while it still passes with an ASCIITMP. That shows the non-ASCII folder was used and that the new form decodes UTF-8 asu8pathdid.maind974c88afull build andctest -j2: 167/170, with and withoutLEONIDA_VK_VALIDATION=1. The failures areroot_signature_oracle(root_signature_oracle_test: Windows 10 can't serialize the heap-direct flags; check the other flags there #4731),d3d12_indirect_dispatch_count(d3d12_indirect_dispatch_count_test: check the layer against the expected count (WARP 22621 reuses a stale count) #4653) andd3d12_conservative_raster(TEST-907).Not tested: Linux. The file is built only on Windows, since it uses
windows.h.AI-assisted: yes (Claude Code).
Checklist
docs/design.md, with how it was confirmed. (not a translator change)🤖 Generated with Claude Code
https://claude.ai/code/session_01GZEZyXGTTXs4V33hrBw1tD