microsoft / mssql-docker

Official Microsoft repository for SQL Server in Docker resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't change locale for CLR

VasiliyLu opened this issue · comments

Everywhere everything changed successfully (installed additional locale), but CLR assemblies continue to work in POSIX.

Corrected Docker image:

RUN apt-get install --reinstall -y locales
# uncomment chosen locale to enable it's generation
RUN sed -i 's/# sr_RS.UTF-8 UTF-8/sr_RS.UTF-8 UTF-8/' /etc/locale.gen
# generate chosen locale
RUN locale-gen sr_RS.UTF-8
# set system-wide locale settings
ENV LANG sr_RS.UTF-8
ENV LANGUAGE sr_RS
ENV LC_ALL sr_RS.UTF-8
# verify modified configuration
RUN dpkg-reconfigure --frontend noninteractive locales
RUN /opt/mssql/bin/mssql-conf set language.lcid 2074

cat cat /proc/X/environ

root@ef8050e0aabe:/# cat /proc/35/environ | tr '\0' '\n'
HOSTNAME=ef8050e0aabe
LANGUAGE=sr_RS
PWD=/
MSSQL_SA_PASSWORD=
HOME=/root
LANG=sr_RS.UTF-8
CONFIG_EDGE_BUILD=
MSSQL_LCID=2074
ACCEPT_EULA=Y
MSSQL_RPC_PORT=135
SHLVL=0
LC_ALL=sr_RS.UTF-8
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin