Skip to content

Commit

Permalink
<format>: Guard one use of _MSVC_EXECUTION_CHARACTER_SET (#4076)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpplearner authored Oct 14, 2023
1 parent 36a6a3e commit 33ae7d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stl/inc/format
Original file line number Diff line number Diff line change
Expand Up @@ -1139,12 +1139,14 @@ public:

if constexpr (_Is_ordinary_literal_encoding_utf8()) {
return _Decode_utf(_First, _Last, _Val);
#ifdef _MSVC_EXECUTION_CHARACTER_SET // TRANSITION, VSO-1468747 (EDG)
} else if constexpr (_Is_execution_charset_self_synchronizing()) {
wchar_t _Wide;
const auto _Res =
__std_fs_convert_narrow_to_wide(__std_code_page{_MSVC_EXECUTION_CHARACTER_SET}, _First, 1, &_Wide, 1);
_Val = _Wide;
return {_First + 1, _Res._Len != 0};
#endif // defined(_MSVC_EXECUTION_CHARACTER_SET)
} else {
if (*_First == '\0') {
_Val = U'\0';
Expand Down

0 comments on commit 33ae7d2

Please sign in to comment.