From 54b5eb2b149a1f2a4a1dbdb9e0648c5a390d8e22 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 15 Apr 2020 10:04:41 +0000 Subject: tests: Add std::locale::global to list of locale dependent functions in lint-locale-dependence.sh We currently flag `setlocale(...)` as locale dependent, but prior to this commit we didn't flag `std::locale::global(...)` as such. In addition to setting the global C++ locale `std::locale::global(...)` also does the equivalent of `std::setlocale(LC_ALL, ...);`. Thus the functionality of `std::locale::global(...)` is a superset of `setlocale(...)` :) --- test/lint/lint-locale-dependence.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/test/lint/lint-locale-dependence.sh b/test/lint/lint-locale-dependence.sh index 70410d7405..3a28c286fc 100755 --- a/test/lint/lint-locale-dependence.sh +++ b/test/lint/lint-locale-dependence.sh @@ -97,6 +97,7 @@ LOCALE_DEPENDENT_FUNCTIONS=( snprintf sprintf sscanf + std::locale::global std::to_string stod stof -- cgit v1.2.3