Issue #153 has been updated by tuxillo.

Description updated
Category set to Userland
Status changed from New to Closed
Assignee changed from 0 to marino
Target version set to 4.2.x

Hi,

No longer the case in our current stable/master:

antonioh@nas:~/irclogs$ env LANG="fr_FR.UTF-8" date
jeu 15 jan 2015 16:29:32 CET
antonioh@nas:~/irclogs$ env LANG="en_EN.UTF-8" date
Thu Jan 15 16:29:39 CET 2015
antonioh@nas:~/irclogs$ env LANG="es_ES.UTF-8" date
jueves, 15 de enero de 2015, 16:29:47 CET
antonioh@nas:~/irclogs$ env LANG="de_DE.UTF-8" date
Do 15 Jan 2015 16:29:58 CET

Cheers,
Antonio Huete

----------------------------------------
Bug #153: date(1) output doesn't obey locale setting
http://bugs.dragonflybsd.org/issues/153#change-12458

* Author: antencek
* Status: Closed
* Priority: Normal
* Assignee: marino
* Category: Userland
* Target version: 4.2.x
----------------------------------------
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 <---



-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account

Reply via email to