From 62ccbb1d026b08ae70973e5b15adecd980556f0e Mon Sep 17 00:00:00 2001 From: Chris Djali Date: Fri, 28 Feb 2025 18:52:49 +0000 Subject: Write BOM if original file used one (#2213) Important for UTF-16 as lots of things can't detect or read UTF-16 without a BOM --- src/texteditor.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/texteditor.h') diff --git a/src/texteditor.h b/src/texteditor.h index 7f6adcdb..e6694518 100644 --- a/src/texteditor.h +++ b/src/texteditor.h @@ -130,6 +130,7 @@ private: QColor m_highlightBackground; QString m_filename; QString m_encoding; + bool m_needsBOM; bool m_dirty; bool m_loading; -- cgit v1.3.1