Conversation
|
Nice. I guess we can replace (it's only used in two real places) |
|
Concept ACK |
fa7f612 to
faaf1cb
Compare
Done |
| const std::string itostr_with_locale = itostr(random_int32); | ||
| assert(itostr_without_locale == itostr_with_locale); | ||
| const std::string tostring_with_locale = ToString(random_int64); | ||
| assert(tostring_without_locale == tostring_with_locale); |
There was a problem hiding this comment.
Isn't this comparing a string with itself now?
There was a problem hiding this comment.
assert(tostring_without_locale
== tostring_with_locale);There was a problem hiding this comment.
The fuzzer's goal is to assert the function does not respond to changing the locale. So generating the same string with two different locales is needed. The check should assert that they are the same.
|
Concept ACK: thanks for helping getting rid of accidental locale dependence! Scary valgrind error in Travis (unrelated I presume): 👀 |
|
ACK faaf1cb |
|
Code review ACK faaf1cb. |
|
appveyor run: https://ci.appveyor.com/project/DrahtBot/bitcoin/builds/31768233 Open-Close to re-run ci. See #15847 (comment) |
|
The issue valgrind found is a long-standing issue where the vector of nodes in Connman is not locked: See #18457 . Indeed unrelated to this pull. |
Summary: This is a backport of Core [[bitcoin/bitcoin#18449 | PR18449]] [1/2] bitcoin/bitcoin@fac96ff Test Plan: ``` ninja all check-all grep -R itostr .. ``` Reviewers: #bitcoin_abc, Fabien Reviewed By: #bitcoin_abc, Fabien Subscribers: Fabien Differential Revision: https://reviews.bitcoinabc.org/D8890
Currently unused, but if someone really needed to use a helper with this functionality in the future, they could use
ToString.