Skip to content

Windows installer build crashes in a shell with no UTF-8 setting #1

Done

Description

@devnithdev

The Windows installer step crashes when the build runs in a shell with no UTF-8 language setting:

libc++abi: terminating due to uncaught exception of type std::bad_alloc: std::bad_alloc
./build-windows.sh: line 62: Abort trap: 6  makensis -V2 OfficePrinting.nsi

This was seen with NSIS 3.13 from Homebrew on an Apple Silicon Mac. Setting LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 makes it work, and even a five-line test script crashes without it, so the cause is the setting and not the installer script.

Where to look: the makensis line near the end of Source code/installer/build-windows.sh.

Done when: the build works from a shell with no language setting, for example env -u LANG -u LC_ALL ./build-windows.sh. en_US.UTF-8 may not exist on every Linux build machine (the GitHub build runs on Ubuntu), so please check that the Windows job still passes.

Activity

  1. added
    bug
    good first issue
    contributions welcome
    on Oct 31, 2026
  2. devnithdev commented on Nov 24, 2026

    @devnithdev
    OwnerAuthor

    Fixed by #19: the Windows installer build now sets LC_CTYPE=C.UTF-8 for makensis. Thanks to @KrishnaVidhyarthii.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcontributions welcomegood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions