wrong date format in "ls -la" output

Bug #562894 reported by RainerT
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: bash

My system is set to german output but the long ls listing shows wrong/us date format:

tr@tr-ubuntu:~$ env|grep LANG
LANG=de_DE.UTF-8
GDM_LANG=de_DE.UTF-8
tr@tr-ubuntu:~$ date
Mi 14. Apr 11:13:46 CEST 2010
tr@tr-ubuntu:~$ touch myFile
tr@tr-ubuntu:~$ ls -la myFile
-rw-r--r-- 1 tr tr 0 2010-04-14 11:13 myFile

Here is an example of Redhat EL5 which gives different/right output:
tr@tr-ubuntu:~$ ssh xxx
tr@xxx's password:
Last login: Wed Apr 14 11:12:53 2010 from yyy
[tr@xxx ~]$ touch myFile
[tr@xxx ~]$ ls -la myFile
-rw-rw-r-- 1 tr tr 0 14. Apr 11:15 myFile
[tr@xxx ~]$ env|grep LANG
LANG=de_DE.UTF-8

ProblemType: Bug
Architecture: i386
Date: Wed Apr 14 11:07:53 2010
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: bash 4.0-5ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-20.58-generic
SourcePackage: bash
Uname: Linux 2.6.31-20-generic i686

Revision history for this message
RainerT (tr-ml) wrote :
Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

More information about your environment is required. Could you please run `locale' on Ubuntu and Red Hat and provide the two outputs. LANG isn't used if some other variables are set; see locale(7).

Changed in bash (Ubuntu):
status: New → Incomplete
Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

Also, ls's output isn't a bash issue, but the package coreutils; this bug should probably be re-assigned unless you think it's bash setting the environment up incorrectly.

Revision history for this message
RainerT (tr-ml) wrote :

Yes, then this probably should be reassigned to coreutils.

Here's the ubuntu 9.10 output from a direct ssh logon:
rtraut@tr-ubuntu:~$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

Revision history for this message
RainerT (tr-ml) wrote :

And here's from RHEL5 direct ssh:
[rtraut@wwwtest ~]$ locale
LANG=de_DE.UTF-8
LC_CTYPE="de_DE.UTF-8"
LC_NUMERIC="de_DE.UTF-8"
LC_TIME="de_DE.UTF-8"
LC_COLLATE="de_DE.UTF-8"
LC_MONETARY="de_DE.UTF-8"
LC_MESSAGES="de_DE.UTF-8"
LC_PAPER="de_DE.UTF-8"
LC_NAME="de_DE.UTF-8"
LC_ADDRESS="de_DE.UTF-8"
LC_TELEPHONE="de_DE.UTF-8"
LC_MEASUREMENT="de_DE.UTF-8"
LC_IDENTIFICATION="de_DE.UTF-8"
LC_ALL=

looks the same to me.

affects: bash (Ubuntu) → coreutils (Ubuntu)
Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

Agreed, they're the same.

Changed in coreutils (Ubuntu):
status: Incomplete → New
Revision history for this message
Maik Wagner (mtwagner) wrote :

Confirming in latest "bionic". The day of the month should be before the name of the month.

root@v22017054636649512:~# env|grep LANG
LANG=de_DE.UTF-8
root@v22017054636649512:~# date
So 24. Dez 22:20:09 CET 2017
root@v22017054636649512:~# touch myFile
root@v22017054636649512:~# ls -la myFile
-rw-r--r-- 1 root root 0 Dez 24 22:20 myFile

Revision history for this message
Ralph Corderoy (ralph-inputplus) wrote :

Hi Maik, If you think you are confirming the original bug report still exists then you need to change the status above from `New' to `Confirmed'.

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.