```
This should be a refactor except in the cases where we use the wrong
format specifier, in which case this patch is a bug fix.
```
Backport of core [[https://github.com/bitcoin/bitcoin/pull/16205 | PR16205]].
This allows to reenable the `fprintf` detection in the locale dependence
linter.
Depends on D5776 and D5778.