You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently using Encoding.Default and specifying the detectEncodingFromByteOrderMarks=true in the constructor of the stream reader when indexing a log file. The indexer determines the start position and length of each line including the delimiter. It also determines what the line delimiter is (different for Windows, Mac, Unix).
When the content of the line is read because it comes it view, the Encoding used by the reader is not necessarily the same as used by the stream reader as the code bypasses use stream reader all together. Also in the code it assumes a 2 character windows delimiter.
Currently using Encoding.Default and specifying the detectEncodingFromByteOrderMarks=true in the constructor of the stream reader when indexing a log file. The indexer determines the start position and length of each line including the delimiter. It also determines what the line delimiter is (different for Windows, Mac, Unix).
When the content of the line is read because it comes it view, the Encoding used by the reader is not necessarily the same as used by the stream reader as the code bypasses use stream reader all together. Also in the code it assumes a 2 character windows delimiter.
This need sorting out sooner rather than later!
For reference see:
LineIndexer.cs
FileInfoEx (see last overoad of ReadLines(...) method)
The text was updated successfully, but these errors were encountered: