@@ -188,13 +188,13 @@ namespace __print {
188
188
//
189
189
190
190
# ifdef _LIBCPP_HAS_NO_UNICODE
191
- inline constexpr bool __use_unicode = false ;
191
+ inline constexpr bool __use_unicode_execution_charset = false ;
192
192
# elif defined(_MSVC_EXECUTION_CHARACTER_SET)
193
193
// This is the same test MSVC STL uses in their implementation of <print>
194
194
// See: https://learn.microsoft.com/en-us/windows/win32/intl/code-page-identifiers
195
- inline constexpr bool __use_unicode = _MSVC_EXECUTION_CHARACTER_SET == 65001 ;
195
+ inline constexpr bool __use_unicode_execution_charset = _MSVC_EXECUTION_CHARACTER_SET == 65001 ;
196
196
# else
197
- inline constexpr bool __use_unicode = true ;
197
+ inline constexpr bool __use_unicode_execution_charset = true ;
198
198
# endif
199
199
200
200
_LIBCPP_HIDE_FROM_ABI inline bool __is_terminal (FILE* __stream) {
@@ -329,7 +329,7 @@ __vprint_unicode([[maybe_unused]] FILE* __stream,
329
329
template <class ... _Args>
330
330
_LIBCPP_HIDE_FROM_ABI void print (FILE* __stream, format_string<_Args...> __fmt, _Args&&... __args) {
331
331
# ifndef _LIBCPP_HAS_NO_UNICODE
332
- if constexpr (__print::__use_unicode )
332
+ if constexpr (__print::__use_unicode_execution_charset )
333
333
__print::__vprint_unicode (__stream, __fmt.get (), std::make_format_args (__args...), false );
334
334
else
335
335
__print::__vprint_nonunicode (__stream, __fmt.get (), std::make_format_args (__args...), false );
@@ -349,7 +349,7 @@ _LIBCPP_HIDE_FROM_ABI void println(FILE* __stream, format_string<_Args...> __fmt
349
349
// Note the wording in the Standard is inefficient. The output of
350
350
// std::format is a std::string which is then copied. This solution
351
351
// just appends a newline at the end of the output.
352
- if constexpr (__print::__use_unicode )
352
+ if constexpr (__print::__use_unicode_execution_charset )
353
353
__print::__vprint_unicode (__stream, __fmt.get (), std::make_format_args (__args...), true );
354
354
else
355
355
__print::__vprint_nonunicode (__stream, __fmt.get (), std::make_format_args (__args...), true );
0 commit comments