Address review comments in #130407. This patch is already covered by existing locale test cases.
extern "C"
-Wno-sign-conversion
-Wconversion