mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:27:35 +00:00
HexEditor: Fix utf16 validation
Previously the utf8_view was validated for the utf16 valude instead of the utf16_view.
This commit is contained in:
parent
32205495e6
commit
8fa34b43ce
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ void HexEditorWidget::update_inspector_values(size_t position)
|
|||
if (byte_read_count % 2 == 0) {
|
||||
Utf16View utf16_view { Span<u16 const> { reinterpret_cast<u16 const*>(&unsigned_64_bit_int), 4 } };
|
||||
size_t valid_code_units;
|
||||
utf8_view.validate(valid_code_units);
|
||||
utf16_view.validate(valid_code_units);
|
||||
if (valid_code_units == 0)
|
||||
value_inspector_model->set_parsed_value(ValueInspectorModel::ValueType::UTF16, "");
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue