Closed rdipardo closed 1 year ago
Ha! 😀 I was just going to ask help on the forum for this encoding issue, becuase I had a hard time reproducing it. Thanks a lot for the PR, much appreciated 👍 I'll rebuild a development DLL and ask some people to check it out
Thanks again and happy Easter (ps: check the About form for an easter egg)
Fixes #52 by refactoring the Scintilla-level API to use a variable encoding instead of assuming every buffer is UTF-8 as it does now. This protects ANSI files from corruption when being reformatted.
Just correcting
ScintillaGateway.SetText()
would've been enough to close the issue, but getting functions to work on selected ranges of text will involve something more likeScintillaGateway.ReplaceSel()
, so might as well refactor everything we might need someday.To test: reformat this ANSI file with the options:
[x] Align vertically
[x] Column separator (e.g.
TAB
)CSVLint 0.4.6.2
Note: the lower half has been reformatted
Current Git (patched)