-
Notifications
You must be signed in to change notification settings - Fork 763
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlcmd ungraceful termination without en_US.UTF-8 UTF-8 locale #163
Comments
You need to have "en_US.UTF-8" along with your other locale: Only "nb_NO.UTF-8" fails:
I add "en_US.UTF-8" along with my previous one it works:
|
Thanks, I had mine unset on a vps for ages and never thought it an issue. To be honest it should cope without. Most linux things are able to assume a default or cope without entirely. Warnings aplenty mind you as I've seen many times in the past with other linux build processes etc. |
fenchu's answer solved the issue for me. |
My locale is set but the problem is still present |
@bizmate did you add:
then run locale-gen and the issue is still there? |
@ccalderon911217 i just realised this is for docker, so this must be for a specific version of linux. I am seeing the problem on a centos7 VM (not on FROM ubuntu:16.04) where
|
@bizmate yeah this is for ubuntu:latest I believe so I would be different for a centOS. |
First, this report is not just about issue with mssql-docker but I suspect it is related to about mssql-tools for Linux in general, more specifically the
sqlcmd
. (Not sure where would be better and more accessible by others place to report it.)I run docker container based on
ubuntu:latest
image and I install themssql-tools
in order to be able to runsqlcmd
(I'm connecting to SQL Server in separate container).Here is my Dockerfile
Then I do
docker exec -it bash
and BANG!The SQL Server installation docs do not mention anything about specific locale required.
The only source of any hints is the
Dockerfile
-s like https://github.com/Microsoft/mssql-docker/blob/master/oss-drivers/msphpsql/Dockerfile, which contain:If digs deeper, one can find this comment #8 (comment) for the seemingly unrelated issue #8
Clearly, this is a bug in the implementation of the
mssql-tools
, specifically thesqlcmd
which should detect it runs in environment with incompatible locale and, obviously, print an informative message, not just terminate.The text was updated successfully, but these errors were encountered: