Commit aff7546
MarcoFalke
Merge bitcoin/bitcoin#27036: test: Remove last uses of snprintf and simplify
b803229 Remove use of snprintf and simplify (John Moffett)
Pull request description:
These are the only remaining uses of `snprintf` in our project, and they can cause unexpected issues -- for example, see bitcoin/bitcoin#27014. Change them to use our `ToString` (which uses a locale-independent version of `std::to_string`) to convert an `int` to `std::string`. Also remove resulting unused parts of `StringContentsSerializer`.
Closes bitcoin/bitcoin#27014
ACKs for top commit:
Sjors:
tACK b803229, fixes #27014.
Tree-SHA512: c903977e654711929decafe8887d0de13b38a340d7082875acc5d41950d834dcfde074e9cabecaf5f9a760f62c34322297b4b156af29761650ef5803b1a54b59File tree
2 files changed
+14
-30
lines changed- src/test
- test/lint
2 files changed
+14
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
324 | 325 | | |
325 | 326 | | |
326 | 327 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 328 | | |
334 | 329 | | |
335 | 330 | | |
| |||
343 | 338 | | |
344 | 339 | | |
345 | 340 | | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
351 | | - | |
352 | | - | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
353 | 344 | | |
354 | 345 | | |
355 | 346 | | |
356 | 347 | | |
357 | 348 | | |
358 | 349 | | |
359 | | - | |
360 | | - | |
361 | 350 | | |
362 | 351 | | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
368 | 356 | | |
369 | 357 | | |
370 | | - | |
| 358 | + | |
371 | 359 | | |
372 | 360 | | |
373 | 361 | | |
374 | 362 | | |
375 | 363 | | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
383 | | - | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
384 | 369 | | |
385 | 370 | | |
386 | 371 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | 48 | | |
50 | 49 | | |
51 | 50 | | |
| |||
0 commit comments