Skip to content

Commit 33ae7d2

Browse files
authored
<format>: Guard one use of _MSVC_EXECUTION_CHARACTER_SET (#4076)
1 parent 36a6a3e commit 33ae7d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stl/inc/format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1139,12 +1139,14 @@ public:
11391139

11401140
if constexpr (_Is_ordinary_literal_encoding_utf8()) {
11411141
return _Decode_utf(_First, _Last, _Val);
1142+
#ifdef _MSVC_EXECUTION_CHARACTER_SET // TRANSITION, VSO-1468747 (EDG)
11421143
} else if constexpr (_Is_execution_charset_self_synchronizing()) {
11431144
wchar_t _Wide;
11441145
const auto _Res =
11451146
__std_fs_convert_narrow_to_wide(__std_code_page{_MSVC_EXECUTION_CHARACTER_SET}, _First, 1, &_Wide, 1);
11461147
_Val = _Wide;
11471148
return {_First + 1, _Res._Len != 0};
1149+
#endif // defined(_MSVC_EXECUTION_CHARACTER_SET)
11481150
} else {
11491151
if (*_First == '\0') {
11501152
_Val = U'\0';

0 commit comments

Comments
 (0)