Can't read lxd info with german locale

Bug #1780061 reported by Johannah Sprinz
28
This bug affects 6 people
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@NeoTheLaptop:~/Code/ubports-installer$ snapcraft cleanbuild --target-arch amd64
Setting target machine to 'amd64'
snapcraft-daily-next-donkey wird erstellt
snapcraft-daily-next-donkey wird gestartet
Stopping local:snapcraft-daily-next-donkey
Failed to detect container architecture: The output from 'lxc info' could not be read:
Name: snapcraft-daily-next-donkey
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:3eff:fec2:724d veth8BYWGX
  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?

Revision history for this message
Johannah Sprinz (neothethird) wrote :

Just for the record, it works with english locale of course.

Revision history for this message
Yannick Mauray (yannick-mauray) wrote :

Confirmed : does not work with french locale either.
Running "LANG=en_US.UTF-8 LANGUAGE=en_US snapcraft cleanbuild" works.

Revision history for this message
Luís Louro (lapisdecor) wrote :

Does not work with portuguese locale either.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.