You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows installer build crashes in a shell with no UTF-8 setting #1
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