[Bug 1300684] [NEW] locale-gen --purge stops after purging the locales

Sworddragon 1300684 at bugs.launchpad.net
Tue Apr 1 09:50:58 UTC 2014


Public bug reported:

I'm using Ubuntu 14.04 dev with locales 2.13+git20120306-12 and upstart
1.12.1-0ubuntu1 and I have found a combination between locale-gen and
upstart to cause some weird behavior. Initially my locales are looking
this:

root at ubuntu:~# locale -a
C
C.UTF-8
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_US.utf8
POSIX


Here is an example script (stored in /etc/init/test.conf):

exec locale-gen --purge &


Here is the result:

root at ubuntu:~# start test && sleep 60 && locale -a
test stop/waiting
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_COLLATE to default locale: No such file or directory
C
C.UTF-8
POSIX


locale-gen has purged the locales but something has caused it to stop then. But if I'm forwarding stdout to /dev/null all is working fine. Here is the updated script:

exec locale-gen --purge > /dev/null &


And this is now the result:

root at ubuntu:~# start test && sleep 60 && locale -a
test stop/waiting
C
C.UTF-8
de_AT.utf8
de_BE.utf8
de_CH.utf8
de_DE.utf8
de_LI.utf8
de_LU.utf8
en_US.utf8
POSIX

** Affects: langpack-locales (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: upstart (Ubuntu)
     Importance: Undecided
         Status: New

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

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

Title:
  locale-gen --purge stops after purging the locales

Status in “langpack-locales” package in Ubuntu:
  New
Status in “upstart” package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 14.04 dev with locales 2.13+git20120306-12 and
  upstart 1.12.1-0ubuntu1 and I have found a combination between locale-
  gen and upstart to cause some weird behavior. Initially my locales are
  looking this:

  root at ubuntu:~# locale -a
  C
  C.UTF-8
  de_AT.utf8
  de_BE.utf8
  de_CH.utf8
  de_DE.utf8
  de_LI.utf8
  de_LU.utf8
  en_US.utf8
  POSIX

  
  Here is an example script (stored in /etc/init/test.conf):

  exec locale-gen --purge &

  
  Here is the result:

  root at ubuntu:~# start test && sleep 60 && locale -a
  test stop/waiting
  locale: Cannot set LC_CTYPE to default locale: No such file or directory
  locale: Cannot set LC_MESSAGES to default locale: No such file or directory
  locale: Cannot set LC_COLLATE to default locale: No such file or directory
  C
  C.UTF-8
  POSIX

  
  locale-gen has purged the locales but something has caused it to stop then. But if I'm forwarding stdout to /dev/null all is working fine. Here is the updated script:

  exec locale-gen --purge > /dev/null &

  
  And this is now the result:

  root at ubuntu:~# start test && sleep 60 && locale -a
  test stop/waiting
  C
  C.UTF-8
  de_AT.utf8
  de_BE.utf8
  de_CH.utf8
  de_DE.utf8
  de_LI.utf8
  de_LU.utf8
  en_US.utf8
  POSIX

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/langpack-locales/+bug/1300684/+subscriptions



More information about the foundations-bugs mailing list