]> git.saurik.com Git - wxWidgets.git/commit
Read and write files using binary mode in wxStyledTextCtrl.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:28:53 +0000 (22:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 30 Sep 2012 22:28:53 +0000 (22:28 +0000)
commite6aed765fc167c45ec1faffb29fd15a2548fde85
treee2e296d8855d97d8f9a46beb076d43d8a0a5ac29
parent3bc69d48db7cd54db9c67dedfe82cc13890bcf71
Read and write files using binary mode in wxStyledTextCtrl.

Use binary mode to preserve the original file EOLs when loading it and also to
save it with the same EOLs later.

Add very primitive EOL auto-detection to LoadFile().

Also add SaveFile()/LoadFile() which were missing in !wxUSE_TEXTCTRL case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72598 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/stc/stc.cpp
src/stc/stc.cpp.in