From 8dc2e7d2f11aee4e70c3675e4ba6dd255a47e0e4 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Wed, 23 Sep 2026 11:51:44 +0200 Subject: web: ship glibc C.utf8 so the web TUI shows åäö MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- deploy/cross-build.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'deploy') 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/ -- cgit v1.3