Project

General

Profile

Actions

Bug #153

closed

date(1) output doesn't obey locale setting

Added by antencek almost 18 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Userland
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Hello all.

I am wondering if anyone else got this problem.

I was trying different locale settings and tested it with date output.

For the selected locale sl_SI.ISO8859-2 the right date output is:
Pon 24 Apr 2006 13:52:17 CEST (weekday name of the day is Pon as
abbreviated Ponedeljek).

It seems like something about locale got broken between 1.2.6-RELEASE
and 1.4.3-RELEASE+.

There are my tests:

root@SRV# uname a
DragonFly hostname 1.2.5-RELEASE DragonFly 1.2.5-RELEASE #1: Fri Aug 26
10:53:30 CEST 2005
root@hostname:/usr/obj/usr/src-stable-20050617/sys/SRV i386
root@SRV# echo $SHELL
/bin/tcsh
root@SRV# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root@SRV# setenv LC_ALL sl_SI.ISO_8859-2
root@SRV# date
Pon 24 Apr 2006 13:52:17 CEST
--
> above OK <---

root@www# uname a
DragonFly hostname 1.2.6-RELEASE DragonFly 1.2.6-RELEASE #1: Wed Oct 26
10:26:58 CEST 2005 root@hostname:/usr/obj/usr/src/sys/WWW i386
root@www# echo $SHELL
/bin/tcsh
root@www# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root@www# setenv LC_ALL sl_SI.ISO_8859-2
root@www# date
Pon 24 Apr 2006 13:48:46 CEST
--
> above OK <---

root@web# uname a
FreeBSD hostname 4.11-STABLE FreeBSD 4.11-STABLE #0: Sun Oct 9 00:32:20
CEST 2005 root@hostname:/usr/obj/usr/src/sys/WEB i386
root@web# echo $SHELL
/bin/csh
root@web# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
root@web# setenv LC_ALL sl_SI.ISO_8859-2
root@web# date
Pon 24 Apr 2006 13:50:47 CEST
--
> above OK <---

> uname a
FreeBSD hostname 5.2.1-RELEASE-p13 FreeBSD 5.2.1-RELEASE-p13 #0: Wed Dec
29 00:40:10 CET 2004
root@hostname:/usr/obj/usr/src-5.2.1-latest/sys/HOST i386
> echo $SHELL
/bin/tcsh
> ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
> setenv LC_ALL sl_SI.ISO_8859-2
> date
Pon 24 Apr 2006 13:55:24 CEST
--
> above OK <---

root@web1# uname a
DragonFly hostname 1.4.3-RELEASE DragonFly 1.4.3-RELEASE #0: Wed Apr 12
23:50:27 CEST 2006 root@hostname:/usr/obj/usr/src/sys/DRAGONFLY i386
root@web1# echo $SHELL
/bin/tcsh
root@web1# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root@web1# setenv LC_ALL sl_SI.ISO_8859-2
root@web1# date
Mon Apr 24 13:53:18 CEST 2006
--
> above NOT OK <---

root@web3# uname a
DragonFly hostname 1.5.3-PREVIEW DragonFly 1.5.3-PREVIEW #0: Mon Apr 24
13:44:27 GMT 2006 root@hostname:/usr/obj/usr/src/sys/GENERIC i386
root@web3# echo $SHELL
/bin/csh
root@web3# ls /usr/share/locale/ | grep -i sl_SI
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root@web3# setenv LC_ALL sl_SI.ISO8859-2
root@web3# date
Mon Apr 24 14:25:27 GMT 2006
--
> above NOT OK <---

Actions

Also available in: Atom PDF