Setting locale failed when configuring a snap polluting the config output
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Triaged
|
High
|
Unassigned |
Bug Description
I tried to install a snap config-example from Snappy store by running the following command:
(amd64)
Then, I am trying to config the example by having the following commands:
(amd64)
> config:
> config-example:
> msg: |
> Yay!
> EOF
(amd64)
(amd64)
apps cfg.yaml
(amd64)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TELEPHONE = "zh_CN.UTF-8",
LC_IDENTIFICATION = "zh_CN.UTF-8",
LC_MONETARY = "zh_CN.UTF-8",
LC_NAME = "zh_CN.UTF-8",
LC_ADDRESS = "zh_CN.UTF-8",
LC_MEASUREMENT = "zh_CN.UTF-8",
LC_NUMERIC = "zh_CN.UTF-8",
LC_TIME = "zh_CN.UTF-8",
LC_PAPER = "zh_CN.UTF-8",
LANG = "C.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("C.UTF-8").
config:
config-example:
msg: 'Yay!
'
I get Setting locale failed error. What is the problem for it?
Thanks & best regards,
XiaoGuo
Changed in snappy: | |
status: | New → Triaged |
importance: | Undecided → High |
summary: |
- Setting locale failed when configuring a snap + Setting locale failed when configuring a snap polluting the config + output |
affects: | snappy → snapd |
This is indeed an issue especially since it appears that perl is outputing these warning on stdout and not on stderr :/
As a workaround:
$ LC_ALL=C.UTF-8 LANGUAGE=en ssh -p 8022 ubuntu@localhost
can be used.