Fork me on GitHub
#docker
<
2022-10-26
>
rgm22:10:39

another possible debugging breadcrumb, around a UTF-8 encoding issue: • I used to use clojure:latest which seems to be Ubuntu-22.04 • above I see that we're thinking it's better to switch to the Debian images, so I tried out clojure:temurin-17-tools-deps-1.11.1.1165-bullseye (Debian 11) • I test-deployed a deps.edn app using next-jdbc to connect to a Postgres 14 cluster. • I noticed my frontend browser UI was now showing eg. "Window Wall System ��� Full Height Spandrel" where it used to show "Window Wall System – Full Height Spandrel" • I chased through from the database: the db encoding was correct with a direct psql query. • if I went into the docker container and started a REPL, I could see that the string shown at the REPL was wrong. • I played a bit of a hunch on what had changed, and it was the docker image. • Hypothesis: the docker images vary in a bunch of their base env vars. The debian one is missing eg. LC_ALL, LANG, LANGUAGE • going back to the ubuntu image made the issue go away Anyone who understands more than I do about UTF-8 and Linux (which is practically nothing) know if this hypothesis seems reasonable? If so, I can work around it by just setting the env vars in my image.