[PATCH] Should be more forceful about setting LANG in /etc/default/locale

Bug #249550 reported by Michael Terry
4
Affects Status Importance Assigned to Milestone
oem-config (Ubuntu)
Fix Released
Undecided
Colin Watson

Bug Description

Binary package hint: oem-config

If LANG doesn't already exist in /etc/default/locale, oem-config doesn't set it. Which means the system will use the C locale as the default. It should probably treat LANG like it treats LANGUAGE and set it if missing.

Patch attached.

Tags: oem-services

Related branches

Revision history for this message
Michael Terry (mterry) wrote :
Revision history for this message
Michael Terry (mterry) wrote :

Hmm, /etc/default/locale might not even exist yet. Here's a version that creates it if not.

Revision history for this message
Nick Ellery (nick.ellery) wrote :

Confirming report, as a patch has been attached.

Changed in oem-config:
status: New → Confirmed
Revision history for this message
Colin Watson (cjwatson) wrote :

Thanks; I've committed a more compact version of this.

Changed in oem-config:
assignee: nobody → kamion
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package oem-config - 1.45

---------------
oem-config (1.45) intrepid; urgency=low

  [ Colin Watson ]
  * Restore lost change from 1.38:
    - Don't fail to set the locale if the mirror/country question doesn't
      exist.
  * Add oem to /usr/lib/oem-config/user/reserved-usernames (see LP #251056).
  * Add sensible --version output and output our version to oem-config.log.
  * Automatic update of included source packages: localechooser 2.03ubuntu2,
    user-setup 1.20ubuntu4.

  [ Michael Terry ]
  * Set LANG in /etc/default/locale even if it isn't there already
    (LP: #249550).
  * Ensure that some widget is focused after changing page (LP: #241367).
  * Add an auto-login option, currently GTK-only (LP: #241372).

  [ Evan Dandrea ]
  * Do not try to set localechooser/alreadyrun. It is no longer used.
  * Also remove the langlevel file if it exists before we start
    localechooser.

 -- Colin Watson <email address hidden> Fri, 22 Aug 2008 13:00:18 +0100

Changed in oem-config:
status: Fix Committed → Fix Released
Michael Terry (mterry)
tags: added: oem-services
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.