Package: systemd
Version: 20-1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---
My locale is

LANG=de_DE.UTF-8
LC_MESSAGES=C

which workes perfectly with sysvinit. Systemd on the other hand
expects the locale configuration to be in /etc/locale.conf and
only uses LANG from /etc/default/locale.

The locale parsing logic is in src/locale-setup.c on line 139

#elif defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU)
        if (r <= 0 &&
            (r = parse_env_file("/etc/default/locale", NEWLINE,
                                "LANG", &variables[VARIABLE_LANG],
                                NULL)) < 0) {

                if (r != -ENOENT)
                        log_warning("Failed to read /etc/default/locale: %s", 
strerror(-r));
        }

IMHO that should better be

#elif defined(TARGET_DEBIAN) || defined(TARGET_UBUNTU)
       if (r <= 0 &&
            (r = parse_env_file("/etc/default/locale", NEWLINE,
                               "LANG",              &variables[VARIABLE_LANG],
                               "LC_CTYPE",          
&variables[VARIABLE_LC_CTYPE],
                               "LC_NUMERIC",        
&variables[VARIABLE_LC_NUMERIC],
                               "LC_TIME",           
&variables[VARIABLE_LC_TIME],
                               "LC_COLLATE",        
&variables[VARIABLE_LC_COLLATE],
                               "LC_MONETARY",       
&variables[VARIABLE_LC_MONETARY],
                               "LC_MESSAGES",       
&variables[VARIABLE_LC_MESSAGES],
                               "LC_PAPER",          
&variables[VARIABLE_LC_PAPER],
                               "LC_NAME",           
&variables[VARIABLE_LC_NAME],
                               "LC_ADDRESS",        
&variables[VARIABLE_LC_ADDRESS],
                               "LC_TELEPHONE",      
&variables[VARIABLE_LC_TELEPHONE],
                               "LC_MEASUREMENT",    
&variables[VARIABLE_LC_MEASUREMENT],
                               "LC_IDENTIFICATION", 
&variables[VARIABLE_LC_IDENTIFICATION],
                                NULL)) < 0) {
               
                if (r != -ENOENT)       
                        log_warning("Failed to read /etc/default/locale: %s", 
strerror(-r));
       }

(untested)

Cheers,
Flo.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.38-1-amd64

Debian Release: wheezy/sid
  500 unstable        www.debian-multimedia.org 
  500 unstable        ftp.de.debian.org 
  500 testing         ftp.de.debian.org 
  100 experimental-snapshots qt-kde.debian.net 
    1 experimental    ftp.de.debian.org 

--- Package information. ---
Depends                (Version) | Installed
================================-+-==============
libaudit0                        | 1.7.13-1+b2
libc6                  (>= 2.10) | 2.11.2-13
libcap2                (>= 2.10) | 1:2.20-1
libcryptsetup1        (>= 2:1.2) | 2:1.2.0-2
libdbus-1-3           (>= 1.1.1) | 1.4.6-1
libpam0g           (>= 0.99.7.1) | 1.1.2-2
libselinux1          (>= 2.0.65) | 2.0.96-1
libudev0                (>= 154) | 166-1
libwrap0             (>= 7.6-4~) | 7.6.q-19
util-linux         (>= 2.17.2-5) | 2.17.2-9.1


Recommends          (Version) | Installed
=============================-+-===========
libpam-systemd                | 20-1


Suggests         (Version) | Installed
==========================-+-===========
systemd-gui                | 20-1





-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to