Things aren't simple for this issue.

Looks like when apt prints out its StatusFd messages; it does so (quite
rightly) following LC_NUMERIC when doing a straight sprintf(...,
"...%.4f...", ...). Many other calls are wrapping decimal values in a
call to to_string() to get around this.

The problem with this is that some other tools (debconf's debconf-apt-
progress, python-apt) rely on the output being in C.UTF-8 (or some other
similar format) to parse the output, and won't be able to parse output
where the decimal separator is anything other than '.'. This happens in
fr_FR.UTF-8 and es_ES.UTF-8 at least.

I can work around this in ubiquity by setting LC_NUMERIC; but it won't
fix the underlying cause being that apt prints out the values that may
or may not be parseable by other tools. Apt should be fixed (this
appears to be a regression from xenial) or we'll need to modify debconf-
apt-progress and python-apt to account for the changes.

** Changed in: ubiquity (Ubuntu)
       Status: Confirmed => In Progress

** Changed in: ubiquity (Ubuntu)
     Assignee: Ubuntu Installer Team (ubuntu-installer) => Mathieu 
Trudel-Lapierre (cyphermox)

** Also affects: apt (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: apt (Ubuntu)
       Status: New => Confirmed

** Changed in: apt (Ubuntu)
   Importance: Undecided => Critical

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1611010

Title:
  yakkety desktop - non-english installation crashes with
  /plugininstall.py: ValueError: invalid literal for int() with base 10:
  ''

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1611010/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to