Improve fs::PathToString documentation#23522
Conversation
|
Is there any way to enforce this without looking at the code with human eyes? Are the tests going to fail if we switch to std filesystem and have an incorrect string conversion? |
|
Documentation review ACK 9b575f1
Yes, especially the Windows tests will fail, as the situation is most dire there. Both the functional and unit tests, as they both have some tests that use unicode characters in paths (that are not in any of the "narrow" codepages). |
shaavan
left a comment
There was a problem hiding this comment.
ACK 9b575f1
This PR intends to add documentation for the PathToString functions.
This PR:
- Clarifies where it is safe to use this command and where it used to be replaced with other functions.
- Rewords the comments in the fs.h file detailing pathToString usage to make them more logically and verbally sound.
- Move the Windows and POSIX implementation notes under the PathToString function
The documentation is nicely worded and easy to understand. There is no critical grammar error in the wording. However, I found some minor grammatical corrections that you might consider if you update the PR for some other crucial reason.
|
ACK 9b575f1 |
|
re: #23522 (comment)
I think ideally
So ideally we could get rid of |
9b575f1 Improve fs::PathToString documentation (Russell Yanofsky) Pull request description: Add a developer note about avoiding `fs::PathToString` in RPCs, and improve some other `fs::PathToString` comments. Developer note might have been useful in two recent review comments: - bitcoin#23398 (comment) - bitcoin#23155 (comment) ACKs for top commit: laanwj: Documentation review ACK 9b575f1 jamesob: ACK bitcoin@9b575f1 prayank23: ACK bitcoin@9b575f1 hebasto: ACK 9b575f1 shaavan: ACK 9b575f1 Tree-SHA512: b8b3ecb6208c3897241e4f24dcec64fe7cf091bc79388862cf5f4b315cb8e804939981c4bed4c81dbff99ec9f750bad99015d0f04890704ac9df63c2a6719b6d
Add a developer note about avoiding
fs::PathToStringin RPCs, and improve some otherfs::PathToStringcomments.Developer note might have been useful in two recent review comments: