diff options
| author | Anders Betts <anders.betts@gmail.com> | 2026-09-23 11:51:44 +0200 |
|---|---|---|
| committer | Anders Betts <anders.betts@gmail.com> | 2026-09-23 11:51:44 +0200 |
| commit | 8dc2e7d2f11aee4e70c3675e4ba6dd255a47e0e4 (patch) | |
| tree | bc1b0fe58a991d26499386f17e3c4c72b69eea1d /deploy/cross-build.sh | |
| parent | 09a5832797073b5926e533defff1be289d29d351 (diff) | |
| download | bokf-8dc2e7d2f11aee4e70c3675e4ba6dd255a47e0e4.tar.gz bokf-8dc2e7d2f11aee4e70c3675e4ba6dd255a47e0e4.zip | |
web: ship glibc C.utf8 so the web TUI shows åäö
The cross-built bokftui is static glibc; in the Alpine web image it found
no locale data, setlocale() failed and åäö were invalid bytes. The cross
build now copies Debian's C.utf8 into the image and the image build runs
bokfweb --check-locale, so a TUI without UTF-8 fails the build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'deploy/cross-build.sh')
| -rw-r--r-- | deploy/cross-build.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy/cross-build.sh b/deploy/cross-build.sh index 54a2929..75c181c 100644 --- a/deploy/cross-build.sh +++ b/deploy/cross-build.sh @@ -18,3 +18,9 @@ make -C /src -j"$(nproc)" BUILD=/tmp/build \ mkdir -p /out cp /tmp/build/bokfd /tmp/build/bokfctl /tmp/build/bokftui \ /tmp/build/bokfweb /out/ + +# A static glibc program loads its locale data from /usr/lib/locale, which +# the Alpine runtime does not have: without C.utf8 setlocale() fails and +# the TUI shows no åäö. Ship Debian's C.utf8 with the binaries. +mkdir -p /out/locale +cp -a /usr/lib/locale/C.utf8 /out/locale/ |
