Skip to content

Commit f163372

Browse files
committed
Use _Measure_display_width
Addresses microsoft#4631
1 parent 5e00dba commit f163372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stl/inc/format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4561,7 +4561,7 @@ private:
45614561
}
45624562
}
45634563

4564-
const int _Width = static_cast<int>(_Buffer.size()); // TRANSITION, GH-4631
4564+
const int _Width = _Measure_display_width<_CharT>(_Buffer);
45654565
return _STD _Write_aligned(
45664566
_Ctx.out(), _Width, _Format_specs, _Fmt_align::_Left, [&](_FormatContext::iterator _Out) {
45674567
return _STD _Fmt_write(_STD move(_Out), basic_string_view{_Buffer});

0 commit comments

Comments
 (0)