If an INI file is UTF-8 and has a byte order mark (=BOM) NSIS fails to write to the beginning section.
Repro:
- Create a UTF-8 INI File with BOM in the beginning (3 bytes).
- Add a Section (e.g. [Section]) directly to the first line with your favorite UTF-8 Editor.
- Add a WriteINIStr line to the Installation ([Section] x=y).
- Check the INI file. It now has two times the [Section]. NSIS didn't reconized the beginning section.
Expected result:
- NSIS should detect the Section also if there are 3bytes-BOM at the beginning.
Logged In: YES
user_id=584402
Originator: NO
NSIS doesn't support Unicode. We use only Windows API for INI files and if that doesn't support UTF-8, then we can't.
The Unicode version of NSIS might support it:
http://www.scratchpaper.com/