ampr: keep resolved host paths in native form #1175

Manually merged
github merged 6 commits from gh-pr/1175/head into gh-pr/1175/base 2026-11-26 09:46:36 +00:00
Owner

@⁠overlordxrz-source on GitHub · 2026-10-08 01:13 UTC · original
overlordxrz-source:ampr/utf8-host-paths → main · +14 −13 · 1 files · 6 commits · merged 2026-10-08 15:27 UTC

APR reads fail when the game is installed under a folder with non-ASCII characters on Windows. ResolveOnePath finds the file through the native std::filesystem::path, but then stores it as a UTF-8 std::string (Common::PathToString). The stat, size and read paths later turn that string back into a std::filesystem::path. On Windows, path(std::string) decodes the bytes with the ANSI code page, not UTF-8 (/utf-8 only sets the source and execution charsets, see microsoft/STL#2511), so the path no longer points at the file and every APR read of it fails with ENOENT. On Linux and macOS the round trip is a no-op, which is why this only shows up on Windows.

This keeps the native path:

  • ResolvedPathInfo::host_path and the file-id table (g_files) now hold a std::filesystem::path
  • TryGetHostPath, GetHostPathStat, ReadHostFileToGuest and the stat/size/read callers take that path and pass it straight to Common::File
  • the path is converted to UTF-8 only for the log lines

Evidence

  • #1156 Tokyo Xtreme Racer, installed under D:/Инсталляторы/[ps5]/.... KernelStat and the directory listing see the pak files, but the first APR read fails:

    APR read missing host file: D:/Инсталляторы/[ps5]/Tokyo_Xtreme_Racer\tokyoxtremeracer/content/paks/global.utoc
    LowLevelFatalError [File:.\../Platforms/PS5/Source/Runtime/Core/Private/PS5PlatformApr.cpp] [Line: 93]
    Apr read failure 80020002 at CB offset 0
    

    and the game then aborts. This change should stop the folder name from breaking that read, but I couldn't test it on Windows or with the game, and I'm not claiming the game boots.

Testing

tests/KernelFileSystemTests.cpp: CheckAprPaths gets a new case that resolves /app0/Инсталляторы/global.utoc through the APR export and checks that the APR stat and size exports find it by ID. On Linux the old code passes this too, so it only guards the Windows path.

I couldn't run kernel_file_system_tests itself. It needs a Vulkan device and the full emulator, and my machine is aarch64 Linux. Here is what I did instead:

  • compiled libAmpr.cpp for x86_64-linux-gnu and x86_64-windows-gnu (mingw) with clang (zig c++) at -Wall -Wextra, and the updated test file for x86_64-linux-gnu. The changed lines add no warnings.
  • built a small native harness that includes libAmpr.cpp, with stubs for the rest of the emulator. It mounts a temporary folder with a Cyrillic name as /app0, resolves a pak file, checks that the cached host path is the native path, and stats and reads it at an offset through that path. All 5 checks pass. This runs on Linux, so it can't reproduce the ANSI code page conversion itself.
  • the changed src/ lines are clean under src/.clang-format (clang-format 23.1.3)

Not built or run on a Windows machine, and not tested with the game.

AI assistance

An AI assistant helped me trace the failing read in the issue log, write the change and the test, and run the builds above. I reviewed the code and the results.

**@⁠overlordxrz-source** on GitHub · 2026-10-08 01:13 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1175) `overlordxrz-source:ampr/utf8-host-paths` → `main` · +14 −13 · 1 files · 6 commits · merged 2026-10-08 15:27 UTC APR reads fail when the game is installed under a folder with non-ASCII characters on Windows. `ResolveOnePath` finds the file through the native `std::filesystem::path`, but then stores it as a UTF-8 `std::string` (`Common::PathToString`). The stat, size and read paths later turn that string back into a `std::filesystem::path`. On Windows, `path(std::string)` decodes the bytes with the ANSI code page, not UTF-8 (`/utf-8` only sets the source and execution charsets, see microsoft/STL#2511), so the path no longer points at the file and every APR read of it fails with ENOENT. On Linux and macOS the round trip is a no-op, which is why this only shows up on Windows. This keeps the native path: - `ResolvedPathInfo::host_path` and the file-id table (`g_files`) now hold a `std::filesystem::path` - `TryGetHostPath`, `GetHostPathStat`, `ReadHostFileToGuest` and the stat/size/read callers take that path and pass it straight to `Common::File` - the path is converted to UTF-8 only for the log lines ## Evidence - #1156 Tokyo Xtreme Racer, installed under `D:/Инсталляторы/[ps5]/...`. `KernelStat` and the directory listing see the pak files, but the first APR read fails: ``` APR read missing host file: D:/Инсталляторы/[ps5]/Tokyo_Xtreme_Racer\tokyoxtremeracer/content/paks/global.utoc LowLevelFatalError [File:.\../Platforms/PS5/Source/Runtime/Core/Private/PS5PlatformApr.cpp] [Line: 93] Apr read failure 80020002 at CB offset 0 ``` and the game then aborts. This change should stop the folder name from breaking that read, but I couldn't test it on Windows or with the game, and I'm not claiming the game boots. ## Testing `tests/KernelFileSystemTests.cpp`: `CheckAprPaths` gets a new case that resolves `/app0/Инсталляторы/global.utoc` through the APR export and checks that the APR stat and size exports find it by ID. On Linux the old code passes this too, so it only guards the Windows path. I couldn't run `kernel_file_system_tests` itself. It needs a Vulkan device and the full emulator, and my machine is aarch64 Linux. Here is what I did instead: - compiled `libAmpr.cpp` for `x86_64-linux-gnu` and `x86_64-windows-gnu` (mingw) with clang (zig c++) at `-Wall -Wextra`, and the updated test file for `x86_64-linux-gnu`. The changed lines add no warnings. - built a small native harness that includes `libAmpr.cpp`, with stubs for the rest of the emulator. It mounts a temporary folder with a Cyrillic name as `/app0`, resolves a pak file, checks that the cached host path is the native path, and stats and reads it at an offset through that path. All 5 checks pass. This runs on Linux, so it can't reproduce the ANSI code page conversion itself. - the changed `src/` lines are clean under `src/.clang-format` (clang-format 23.1.3) Not built or run on a Windows machine, and not tested with the game. ## AI assistance An AI assistant helped me trace the failing read in the issue log, write the change and the test, and run the builds above. I reviewed the code and the results.
ResolveOnePath stored each resolved file as a UTF-8 std::string
(Common::PathToString) and the read, stat and size paths turned that
string back into a std::filesystem::path. On POSIX this round trip is a
no-op, but on Windows path(std::string) decodes the bytes with the ANSI
code page, not UTF-8 (/utf-8 only sets the source and execution
charsets). Any non-ASCII character in the game folder therefore produced
a different path: the resolve step found the file through the native
path, then every APR read of it failed with ENOENT.

Tokyo Xtreme Racer (#1156) installed under "D:/Инсталляторы/[ps5]/..."
hits this on its first pak read:

  APR read missing host file: .../tokyoxtremeracer/content/paks/global.utoc
  Apr read failure 80020002 at CB offset 0   (LowLevelFatalError, abort)

even though KernelStat and the directory listing see the same file.

Store std::filesystem::path in ResolvedPathInfo and the file-id table
and pass it straight to Common::File. Convert to UTF-8 only for the log
lines.
Resolve a file inside a Cyrillic directory through APR and check that
the stat and size exports find it by ID, matching the Tokyo Xtreme
Racer install layout from #1156. On POSIX the old string round trip
also passed, so this guards the Windows path.
Review on #1175 noted that the Unicode fixture only checked the stat
and size exports. A submitted APR read opens the stored host path in
ExecuteCommand/ReadHostFileToGuest, which the fixture did not reach.

Add AprReadMatches, which submits one APR read command for a file ID
and compares the bytes, and use it on the file under the Cyrillic
folder. As with the stat and size checks, POSIX hosts run this path but
only Windows would show an ANSI code page round trip.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:46:31 +00:00
github manually merged commit 1f5527e92e into gh-pr/1175/base 2026-11-26 09:46:36 +00:00
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-08 01:18 UTC · original · edited 2026-10-08 15:25 UTC

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 17ad3b30-c6af-4df8-8137-dd800f3a534e
📥 Commits

Reviewing files that changed from the base of the PR and between 39db023c3b and 96e344b7b6.

📒 Files selected for processing (1)
  • src/libs/libAmpr.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
  • src/libs/libAmpr.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Host-path caching, lookup, stat, and size operations now use std::filesystem::path. AMPR command execution and host-file reads also pass filesystem paths. Diagnostic logging converts these paths to strings.

Priority: ➖ Normal

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 96e34

No actionable merge-blocking issue was found in the changed path handling. Windows execution is still needed to validate the reported non-ASCII installation scenario.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: retaining resolved host paths in native form for APR handling.
Description check ✅ Passed The description directly explains the Windows non-ASCII path failure, the implementation changes, evidence, and testing limitations. It is fully related to the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-08 01:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1175#issuecomment-6050176972) · edited 2026-10-08 15:25 UTC <!-- This is an auto-generated comment: summarize by coderabbit.ai --> <!-- review_stack_entry_start --> <a href="https://app.coderabbit.ai/change-stack/KytyPS5/KytyPS5/pull/1175?scope=ghh_OusAJGA4HG8ljoOV0wJvVx8NmnZIjc2DdjmxOu0xZWA&amp;cs_source=review_comment"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui-dark.svg?v=2" alt="Review in Change Stack →" width="220" height="32"></a> <!-- review_stack_entry_end --> <!-- recent_review_start --> No actionable comments were generated in the recent review. 🎉 <details> <summary>ℹ️ Recent review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `17ad3b30-c6af-4df8-8137-dd800f3a534e` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 39db023c3bca4dc9883299de1896d25b69ee414b and 96e344b7b68e98aec8265c8f4e5a1dac3d030480. </details> <details> <summary>📒 Files selected for processing (1)</summary> * `src/libs/libAmpr.cpp` </details> <details> <summary>🚧 Files skipped from review as they are similar to previous changes (1)</summary> * src/libs/libAmpr.cpp </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> --- <!-- recent_review_end --> <!-- walkthrough_start --> <details> <summary>📝 Walkthrough</summary> ## Walkthrough Host-path caching, lookup, stat, and size operations now use `std::filesystem::path`. AMPR command execution and host-file reads also pass filesystem paths. Diagnostic logging converts these paths to strings. </details> <!-- walkthrough_end --> <!-- change_assessment_start --> **Priority:** ➖ Normal <!-- change_assessment_commit:"96e344b7b68e98aec8265c8f4e5a1dac3d030480" --> **Change:** Bug fix <!-- change_assessment_end --> <!-- final_review_risk_start --> **Merge Risk:** **⚪ Minimal** · up to `96e34` <!-- final_review_risk_coverage:{"sourceCommitId":"96e344b7b68e98aec8265c8f4e5a1dac3d030480","coveredCommitId":"96e344b7b68e98aec8265c8f4e5a1dac3d030480","kind":"reviewed"} --> No actionable merge-blocking issue was found in the changed path handling. Windows execution is still needed to validate the reported non-ASCII installation scenario. <!-- final_review_risk_end --> <!-- pre_merge_checks_walkthrough_start --> <details> <summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary> ### ❌ Failed checks (1 warning) | Check name | Status | Explanation | Resolution | | :---------------- | :--------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- | | Docstring Coverage | ⚠️ Warning | Docstring coverage is 7.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 2 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. | <details> <summary>✅ Passed checks (4 passed)</summary> | Check name | Status | Explanation | | :------------------------ | :------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Title check | ✅ Passed | The title clearly and concisely describes the main change: retaining resolved host paths in native form for APR handling. | | Description check | ✅ Passed | The description directly explains the Windows non-ASCII path failure, the implementation changes, evidence, and testing limitations. It is fully related to the changeset. | | Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | | Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. | </details> </details> <!-- pre_merge_checks_walkthrough_end --> <!-- autopilot:start --> - [ ] <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autopilot</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts <!-- autopilot:end --> <!-- tips_start --> --- Thanks for using [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=KytyPS5/KytyPS5&utm_content=1175)! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. <details> <summary>❤️ Share</summary> - [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code) </details> <sub>Comment `@coderabbitai help` to get the list of available commands.</sub> <!-- tips_end -->
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-08 01:18 UTC · original · reviewed

🧹 Nitpick comments (1)
tests/KernelFileSystemTests.cpp (1)

1015-1036: 🎯 Functional Correctness | 🔵 Trivial | ⚡ Quick win

Read the non-ASCII file through the APR command path.

CheckAmprOrdering reads only the ASCII collision fixture. The new Unicode fixture checks Stat and Size, but not ExecuteCommand → ReadHostFileToGuest. Add a read assertion for the Unicode file ID. This catches the changed native-path flow on Windows. Linux exercises the flow but does not distinguish a Windows ANSI-code-page round-trip regression.

Suggested fix
-void CheckAmprOrdering(Loader::SymbolDatabase &symbols, uint32_t file_id) {
+void CheckAmprOrdering(
+    Loader::SymbolDatabase &symbols, uint32_t file_id,
+    std::array<char, 3> expected = std::array<char, 3>{'A', 'P', 'R'}) {
...
-              std::memcmp(output.data(), "APR", 3) == 0,
+              std::memcmp(output.data(), expected.data(), expected.size()) == 0,
...
-              std::memcmp(output.data(), "APR", 3) == 0,
+              std::memcmp(output.data(), expected.data(), expected.size()) == 0,
...
-            std::memcmp(output.data(), "APR", 3) == 0,
+            std::memcmp(output.data(), expected.data(), expected.size()) == 0,
...
           "APR stat and size work under a non-ASCII host folder");
+    CheckAmprOrdering(symbols, id, std::array<char, 3>{'U', 'T', 'O'});
   }

ℹ️ Review info
⚙️ Run configuration
  • Configuration used: Repository: KytyPS5/KytyPS5/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 3fc7cdb2-3ddd-4b52-abb3-da6770332c3d
📥 Commits

Reviewing files that changed from the base of the PR and between 5a8808086a and 1c1d987200.

📒 Files selected for processing (2)
  • src/libs/libAmpr.cpp
  • tests/KernelFileSystemTests.cpp

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-08 01:18 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1175#pullrequestreview-5450286565) · **reviewed** <details> <summary>🧹 Nitpick comments (1)</summary><blockquote> <details> <summary>tests/KernelFileSystemTests.cpp (1)</summary><blockquote> `1015-1036`: **🎯 Functional Correctness** | **🔵 Trivial** | **⚡ Quick win** **Read the non-ASCII file through the APR command path.** `CheckAmprOrdering` reads only the ASCII collision fixture. The new Unicode fixture checks `Stat` and `Size`, but not `ExecuteCommand` → `ReadHostFileToGuest`. Add a read assertion for the Unicode file ID. This catches the changed native-path flow on Windows. Linux exercises the flow but does not distinguish a Windows ANSI-code-page round-trip regression. <details> <summary>Suggested fix</summary> ```diff -void CheckAmprOrdering(Loader::SymbolDatabase &symbols, uint32_t file_id) { +void CheckAmprOrdering( + Loader::SymbolDatabase &symbols, uint32_t file_id, + std::array<char, 3> expected = std::array<char, 3>{'A', 'P', 'R'}) { ... - std::memcmp(output.data(), "APR", 3) == 0, + std::memcmp(output.data(), expected.data(), expected.size()) == 0, ... - std::memcmp(output.data(), "APR", 3) == 0, + std::memcmp(output.data(), expected.data(), expected.size()) == 0, ... - std::memcmp(output.data(), "APR", 3) == 0, + std::memcmp(output.data(), expected.data(), expected.size()) == 0, ... "APR stat and size work under a non-ASCII host folder"); + CheckAmprOrdering(symbols, id, std::array<char, 3>{'U', 'T', 'O'}); } ``` </details> <!-- cr-comment:v1:5feb237e98e9eafab2e683f6 --> </blockquote></details> </blockquote></details> --- <details> <summary>ℹ️ Review info</summary> <details> <summary>⚙️ Run configuration</summary> - **Configuration used**: Repository: KytyPS5/KytyPS5/.coderabbit.yaml - **Review profile**: CHILL - **Plan**: Advanced - **Run ID**: `3fc7cdb2-3ddd-4b52-abb3-da6770332c3d` </details> <details> <summary>📥 Commits</summary> Reviewing files that changed from the base of the PR and between 5a8808086a9815b67d4822cd20cf1e8a7a05f002 and 1c1d987200c3890ccaac7eaedfa52586a3a1d039. </details> <details> <summary>📒 Files selected for processing (2)</summary> * `src/libs/libAmpr.cpp` * `tests/KernelFileSystemTests.cpp` </details> **Included review availability:** This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review. </details> <!-- This is an auto-generated comment by CodeRabbit for review status --> <!-- coderabbit-review-publication v1 publication=696aab8d-25b4-44ce-869b-fb6019e8918f attempt=7809ef2c-d54f-4c5f-b0ea-ca40049c55b0 batch=1/1 -->
Author
Owner

@⁠overlordxrz-source on GitHub · 2026-10-08 01:39 UTC · original

@⁠coderabbitai Thanks, added in "tests: read the non-ASCII APR fixture through an APR command". The test now submits one APR read command for the file under the Cyrillic folder and checks that it reads back "UTOC". That covers ExecuteCommand -> ReadHostFileToGuest for the Unicode file ID.

I used a small AprReadMatches helper instead of running CheckAmprOrdering a second time, so the ordering cases stay on the ASCII fixture. As you said, on Linux this only runs the path. The ANSI code page case would only show up on Windows.

**@⁠overlordxrz-source** on GitHub · 2026-10-08 01:39 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1175#issuecomment-6050406729) @⁠coderabbitai Thanks, added in "tests: read the non-ASCII APR fixture through an APR command". The test now submits one APR read command for the file under the Cyrillic folder and checks that it reads back "UTOC". That covers ExecuteCommand -> ReadHostFileToGuest for the Unicode file ID. I used a small AprReadMatches helper instead of running CheckAmprOrdering a second time, so the ordering cases stay on the ASCII fixture. As you said, on Linux this only runs the path. The ANSI code page case would only show up on Windows.
Author
Owner

@⁠coderabbitai[bot] on GitHub · 2026-10-08 01:43 UTC · original

Tip

For best results, initiate chat on the files or code changes.

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail
fd '^KernelFileSystemTests\.cpp$' tests
ast-grep outline tests/KernelFileSystemTests.cpp --match 'AprReadMatches|CheckAprPaths' --view expanded
rg -n -C 45 'AprReadMatches|Инсталляторы' tests/KernelFileSystemTests.cpp

Length of output: 11196


@overlordxrz-source Thanks for the update. I checked tests/KernelFileSystemTests.cpp. AprReadMatches submits the read, waits for completion, checks the result, and compares the bytes with "UTOC".

This addresses the missing read-path coverage. Keeping CheckAmprOrdering on the ASCII fixture is appropriate. Linux exercises the read path, but Windows execution is still needed to validate the ANSI code-page regression.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

**@⁠coderabbitai[bot]** on GitHub · 2026-10-08 01:43 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/1175#issuecomment-6050449716) <!-- This is an auto-generated reply by CodeRabbit --> > [!TIP] > For best results, initiate chat on the files or code changes. <details> <summary>🧩 Analysis chain</summary> 🏁 Script executed: ```shell #!/bin/bash set -euo pipefail fd '^KernelFileSystemTests\.cpp$' tests ast-grep outline tests/KernelFileSystemTests.cpp --match 'AprReadMatches|CheckAprPaths' --view expanded rg -n -C 45 'AprReadMatches|Инсталляторы' tests/KernelFileSystemTests.cpp ``` Length of output: 11196 --- </details> `@overlordxrz-source` Thanks for the update. I checked `tests/KernelFileSystemTests.cpp`. `AprReadMatches` submits the read, waits for completion, checks the result, and compares the bytes with `"UTOC"`. This addresses the missing read-path coverage. Keeping `CheckAmprOrdering` on the ASCII fixture is appropriate. Linux exercises the read path, but Windows execution is still needed to validate the ANSI code-page regression. --- <!-- This is an auto-generated comment: tweet message by coderabbit.ai --> If you found this review helpful, would you consider giving us a shout-out on [X](https://twitter.com/intent/tweet?related=CodeRabbitAI&text=Unicode%20paths%20need%20end-to-end%20coverage%3A%20test%20APR%20reads%20from%20a%20Cyrillic%20folder%20and%20verifies%20%E2%80%9CUTOC%2C%E2%80%9D%20exercising%20ExecuteCommand%20%E2%86%92%20ReadHostFileToGuest.%20Try%20%40coderabbitai%20for%20sharp%20review%20insights%20%F0%9F%90%87%E2%9C%85&url=https%3A%2F%2Fgithub.com%2FKytyPS5%2FKytyPS5%2Fpull%2F1175)? Thank you for using CodeRabbit! <!-- end of auto-generated comment: tweet message by coderabbit.ai --> _You are interacting with an AI system._
This discussion has been locked. Commenting is limited to contributors.
No description provided.