[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#775179: libc-bin: C.UTF-8 locale has wrong time format



Package: libc-bin
Version: 2.19-13
Severity: normal

I’m puzzling a bit, and was searching for a locale with
ISO 8601 time, to set my LC_TIME to. During that, I found:

tglase@tglase:~ $ LC_TIME=en_GB.UTF-8 date +'%x %X'
12/01/15 10:28:01
tglase@tglase:~ $ LC_TIME=en_US.UTF-8 date +'%x %X'
01/12/2015 10:28:05 AM
tglase@tglase:~ $ LC_TIME=C.UTF-8 date +'%x %X'
01/12/2015 10:30:17
tglase@tglase:~ $ LC_TIME=C date +'%x %X'
01/12/15 10:30:19
tglase@tglase:~ $ ssh tglase-bsd "date +'%x %X'"
01/12/15 09:30:28

The last one is for verification (C is correct, C.UTF-8 isn’t);
the host has only the C locale but a different timezone, hence
the output.

-- System Information:
Debian Release: 8.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'buildd-unstable'), (500, 'unstable')
Architecture: x32 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages libc-bin depends on:
ii  libc6    2.19-13
ii  libcap2  1:2.24-6

libc-bin recommends no packages.

libc-bin suggests no packages.

-- no debconf information


Reply to: