From a6e871e39b835e5f87c5f5627ae3d2d85d3ce355 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sun, 30 Nov 2025 07:48:00 -0800 Subject: [PATCH] Don't pull in locale dependency --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 834e959d..094ff302 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -926,7 +926,7 @@ class locale_ref { template locale_ref(const Locale& loc) : locale_(&loc) { // Check if std::isalpha is found via ADL to reduce the chance of misuse. - detail::ignore_unused(isalpha('x', loc)); + detail::ignore_unused(sizeof(isalpha('x', loc))); } inline explicit operator bool() const noexcept { return locale_ != nullptr; }