Menu

#787 NSIS fails on UTF8 INI files with BOM

2.0 Series
closed-wont-fix
General (291)
5
2008-06-13
2008-06-11
No

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.

Discussion

  • Amir Szekely

    Amir Szekely - 2008-06-13
    • assigned_to: nobody --> kichik
    • status: open --> closed-wont-fix
     
  • Amir Szekely

    Amir Szekely - 2008-06-13

    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/

     

Log in to post a comment.