Skip to content

Commit 05aa429

Browse files
committed
[logfile] remove automatic forcing of a file to binary if an invalid UTF-8 line is found
Related to #1296
1 parent 1d85b85 commit 05aa429

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/logfile.cc

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1622,12 +1622,6 @@ logfile::rebuild_index(std::optional<ui_clock::time_point> deadline)
16221622
break;
16231623
}
16241624
}
1625-
if (!li.li_utf8_scan_result.is_valid()
1626-
&& this->lf_text_format != text_format_t::TF_MARKDOWN
1627-
&& this->lf_text_format != text_format_t::TF_LOG)
1628-
{
1629-
this->lf_text_format = text_format_t::TF_BINARY;
1630-
}
16311625

16321626
auto read_result
16331627
= this->lf_line_buffer.read_range(li.li_file_range);

0 commit comments

Comments
 (0)