Fails to parse /etc/default/locale

Bug #1159290 reported by Gunnar Hjalmarsson
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
accountsservice (Ubuntu)
Fix Released
Medium
Gunnar Hjalmarsson

Bug Description

In gnome-control-center 1:3.6.3-0ubuntu14 "Region & Language" was patched so it can be used for setting languages and locales in Ubuntu. When writing to /etc/default/locale, gnome-control-center adds entries without quotes, e.g. LANG=en_US.UTF-8. When accountsservice parses /etc/default/locale, it presupposes entries like LANG="en_US.UTF-8" (which is the way language-selector adds entries). accountsservice should be able to correctly parse both kinds of entries in /etc/default/locale.

Tags: patch
tags: added: patch
Changed in accountsservice (Ubuntu):
assignee: nobody → Gunnar Hjalmarsson (gunnarhj)
importance: Undecided → Medium
status: New → In Progress
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for the quote fix! Why does this drop the migration code?

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Hi Martin,

Because it's not needed any longer, or? There was some migration code in postinst too, but it was dropped in the Quantal dev. cycle, and Sebastien told me it's typically dropped after an LTS release. In other words, you aren't expected to go from e.g. Oneiric to Raring without upgrade to Precise in between.

Martin Pitt (pitti)
Changed in accountsservice (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package accountsservice - 0.6.29-1ubuntu7

---------------
accountsservice (0.6.29-1ubuntu7) raring; urgency=low

  * debian/patches/0009-language-tools.patch:
    - Code for migration from ~/.profile to ~/.pam_environment dropped. This
      was done in 12.04 LTS already.
  * debian/patches/0010-set-language.patch:
    - Code for parsing /etc/default/locale made able to deal with both
      quoted and non-quoted entries (LP: #1159290).
    - Code for migration from ~/.profile to ~/.pam_environment dropped. This
      was done in 12.04 LTS already.
    - A couple of memory leaks fixed.
 -- Gunnar Hjalmarsson <email address hidden> Sun, 24 Mar 2013 20:33:00 +0100

Changed in accountsservice (Ubuntu):
status: Fix Committed → Fix Released
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.