[Pkg-sysvinit-devel] Bug#549279: Warning from setlocale

Cesare Leonardi celeonar at ngi.it
Tue Oct 13 22:32:27 UTC 2009


Package: initscripts
Version: 2.87dsf-6
Severity: normal

During the boot i see a warning message that i think is related to this
bug report.

The message is:
/etc/default/locale: line 31: warning: setlocale: LC_MESSAGES: cannot change locale (en_US.UTF-8): No such file or directory

I've checked that this message come from the following piece of code inside
"/etc/init.d/mountall.sh":

# for ntfs-3g to get correct file name encoding
if [ -r /etc/default/locale ]; then
    . /etc/default/locale
    export LANG
fi

But, as Piotr said, that code runs before the remining filesystems are
mounted and, indeed, on my box /home, /usr and /var are on separate
filesystems. To be more precise:
/ is ext3
/home /usr /var are ext3 inside LVM

My /etc/default/locale is (comments and blank lines dropped):
LANG=it_IT.UTF-8
# LANGUAGE=
# LC_ALL=
# LC_ADDRESS=
# LC_CTYPE=
# LC_COLLATE=
# LC_IDENTIFICATION=
# LC_MEASUREMENT=
LC_MESSAGES=en_US.UTF-8
# LC_MONETARY=
# LC_NAME=
# LC_NUMERIC=
# LC_PAPER=
# LC_TELEPHONE=
# LC_TIME=

I've setup two locales using "dpkg-reconfigure -plow locales":
en_US.UTF-8
it_IT.UTF-8  (default)

Regards.

Cesare.



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.30-2-686 (SMP w/1 CPU core)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages initscripts depends on:
ii  coreutils                     7.5-6      GNU core utilities
ii  debianutils                   3.2.1      Miscellaneous utilities specific t
ii  libc6                         2.9-27     GNU C Library: Shared libraries
ii  lsb-base                      3.2-23     Linux Standard Base 3.2 init scrip
ii  mount                         2.16.1-4   Tools for mounting and manipulatin
ii  sysv-rc                       2.87dsf-6  System-V-like runlevel change mech
ii  sysvinit-utils                2.87dsf-6  System-V-like utilities

Versions of packages initscripts recommends:
ii  e2fsprogs                     1.41.9-1   ext2/ext3/ext4 file system utiliti
ii  psmisc                        22.8-1     utilities that use the proc file s

initscripts suggests no packages.

-- no debconf information





More information about the Pkg-sysvinit-devel mailing list