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