mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:43:22 +00:00
[NOTEPAD] Make "UTF-8 without BOM" default (#5081)
- Define a constant ENCODING_DEFAULT that is equal to ENCODING_UTF8. - Initialize Globals.encFile as ENCODING_DEFAULT. - Reset encoding and line ending in DIALOG_FileNew. - AnalyzeEncoding returns ENCODING_DEFAULT for non-zero ASCII text. - Remove unnecessary DIALOG_StatusBarAlignParts calls. CORE-18837
This commit is contained in:
parent
b2cac5cd6c
commit
f7f2ed201a
4 changed files with 25 additions and 26 deletions
|
@ -580,6 +580,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE prev, LPTSTR cmdline, int sh
|
|||
|
||||
ZeroMemory(&Globals, sizeof(Globals));
|
||||
Globals.hInstance = hInstance;
|
||||
Globals.encFile = ENCODING_DEFAULT;
|
||||
NOTEPAD_LoadSettingsFromRegistry();
|
||||
|
||||
ZeroMemory(&wndclass, sizeof(wndclass));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue