Can't read lxd info with german locale
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
New
|
Undecided
|
Unassigned |
Bug Description
Snapcraft cleanbuild fails on my Ubuntu 18.04 machine with german locale because it fails to read the german output of lxc info. Log:
neothethird@
Setting target machine to 'amd64'
snapcraft-
snapcraft-
Stopping local:snapcraft
Failed to detect container architecture: The output from 'lxc info' could not be read:
Name: snapcraft-
Remote: unix://
Architektur: x86_64
Erstellt: 2018/07/04 08:41 UTC
Status : Running
Type: ephemeral
Profile: default
Pid: 28003
Ips:
eth0: inet6 fe80::216:
lo: inet 127.0.0.1
lo: inet6 ::1
Quellen:
Prozesse: 5
CPU usage:
CPU usage (in seconds): 0
Memory usage:
Arbeitsspeicher (aktuell): 19.95MB
Memory (peak): 22.56MB
Network usage:
eth0:
Bytes empfangen: 340B
Bytes gesendet: 176B
Pakete empfangen: 2
Pakete gesendet: 2
lo:
Bytes empfangen: 0B
Bytes gesendet: 0B
Pakete empfangen: 0
Pakete gesendet: 0
As you can see, the arch is returned correctly, but the output can not be parsed. Maybe snapcraft could also look at the arch that is passed as a command line argument and use that if it can't parse the output?
Just for the record, it works with english locale of course.