Skip to content

Set LANG=C.UTF-8 in Ruby base image#5

Merged
baelter merged 1 commit intomainfrom
set-utf8-locale
Apr 13, 2026
Merged

Set LANG=C.UTF-8 in Ruby base image#5
baelter merged 1 commit intomainfrom
set-utf8-locale

Conversation

@baelter
Copy link
Copy Markdown
Member

@baelter baelter commented Apr 13, 2026

Summary

  • Adds LANG=C.UTF-8 to the Ruby base image ENV block
  • Fixes encoding errors when downstream builds process non-ASCII content (e.g. Sass compiling scss files with UTF-8 characters)
  • C.UTF-8 is available on Debian slim without installing extra locale packages

Test plan

  • Verify the built image has LANG=C.UTF-8 set (docker run --rm <image> env | grep LANG)
  • Rebuild account-admin to confirm Sass compilation passes

Debian slim defaults to POSIX/C locale which breaks tools that
encounter non-ASCII bytes (e.g. Sass compiling scss with UTF-8).
C.UTF-8 is available without extra packages.
@baelter baelter marked this pull request as ready for review April 13, 2026 11:36
@baelter baelter merged commit 5459153 into main Apr 13, 2026
7 checks passed
@baelter baelter deleted the set-utf8-locale branch April 13, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant