Add std::to_string to list of locale dependent functions:
std::to_stringrelies on the current locale for formatting purposes […]
Context #17808 (comment)
Add std::to_string to list of locale dependent functions:
std::to_stringrelies on the current locale for formatting purposes […]
Context #17808 (comment)
ACK
ACK 1f0adb3dac461b3f24f2a98b736d972e9713d67e, I have reviewed the code and it looks OK, I agree it can be merged.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
11 | "src/init.cpp:.*atoi" 12 | + "src/qt/optionsmodel.cpp.*std::to_string" 13 | "src/qt/rpcconsole.cpp:.*atoi" 14 | "src/rest.cpp:.*strtol" 15 | + "src/rpc/net.cpp.*std::to_string" 16 | + "src/rpc/rawtransaction.cpp.*std::to_string"
This shouldn't be an exception, it's a bug?
I'm not sure I follow: how is this a bug?
Do you mean the inclusion of src/rpc/rawtransaction.cpp in this list, or do you mean the usage of std::to_string in src/rpc/rawtransaction.cpp?
Please clarify :)
Applies also to the cases below.
@sipa Ah, got it. FWIW I consider all entries in KNOWN_VIOLATIONS to be potential bugs :)
12 | + "src/qt/optionsmodel.cpp.*std::to_string" 13 | "src/qt/rpcconsole.cpp:.*atoi" 14 | "src/rest.cpp:.*strtol" 15 | + "src/rpc/net.cpp.*std::to_string" 16 | + "src/rpc/rawtransaction.cpp.*std::to_string" 17 | + "src/rpc/util.cpp.*std::to_string"
I think this one is a bug too - we don't want RPC help locale-dependent, do we?
13 | "src/qt/rpcconsole.cpp:.*atoi" 14 | "src/rest.cpp:.*strtol" 15 | + "src/rpc/net.cpp.*std::to_string" 16 | + "src/rpc/rawtransaction.cpp.*std::to_string" 17 | + "src/rpc/util.cpp.*std::to_string" 18 | + "src/test/addrman_tests.cpp.*std::to_string"
Bug
16 | + "src/rpc/rawtransaction.cpp.*std::to_string" 17 | + "src/rpc/util.cpp.*std::to_string" 18 | + "src/test/addrman_tests.cpp.*std::to_string" 19 | + "src/test/blockchain_tests.cpp.*std::to_string" 20 | "src/test/dbwrapper_tests.cpp:.*snprintf" 21 | + "src/test/denialofservice_tests.cpp.*std::to_string"
Bug? Or maybe we should be accepting locale numbers in args...
19 | + "src/test/blockchain_tests.cpp.*std::to_string" 20 | "src/test/dbwrapper_tests.cpp:.*snprintf" 21 | + "src/test/denialofservice_tests.cpp.*std::to_string" 22 | "src/test/fuzz/parse_numbers.cpp:.*atoi" 23 | + "src/test/key_tests.cpp.*std::to_string" 24 | + "src/test/net_tests.cpp.*std::to_string"
bug
Going to push this doc/test-only change. Bug fixes can be solved in a separate pull request.