Skip to content

Commit

Permalink
Fix locale in Docker
Browse files Browse the repository at this point in the history
The docker image (the recommended method for using take-care) didn't support
UTF8 characters in either input or output otherwise. Non-american could easily
break `list-users`, for example. The locale defaulted to "POSIX", but is now
set explicitly.
  • Loading branch information
deiwin committed Nov 26, 2018
1 parent 39a0c3d commit 47528cb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ RUN stack -j "$(nproc)" --system-ghc build --test --keep-going --copy-bins

FROM debian:9.6

ENV LANG C.UTF-8
ENV LC_ALL C.UTF-8

RUN apt-get update && apt-get install -y \
ca-certificates \
libgmp-dev \
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: take-care
version: 0.1.0
version: 0.1.1
github: "deiwin/take-care"
license: MIT
author: "Deiwin Sarjas"
Expand Down

0 comments on commit 47528cb

Please sign in to comment.