[DragonFlyBSD - Bug #153] (Closed) date(1) output doesn't obey locale setting

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Jan 15 07:31:13 PST 2015


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 at nas:~/irclogs$ env LANG="fr_FR.UTF-8" date
jeu 15 jan 2015 16:29:32 CET
antonioh at nas:~/irclogs$ env LANG="en_EN.UTF-8" date
Thu Jan 15 16:29:39 CET 2015
antonioh at nas:~/irclogs$ env LANG="es_ES.UTF-8" date
jueves, 15 de enero de 2015, 16:29:47 CET
antonioh at 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 at SRV# uname -a
DragonFly hostname 1.2.5-RELEASE DragonFly 1.2.5-RELEASE #1: Fri Aug 26 
10:53:30 CEST 2005 
root at hostname:/usr/obj/usr/src-stable-20050617/sys/SRV  i386
root at SRV# echo $SHELL
/bin/tcsh
root at SRV# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root at SRV# setenv LC_ALL sl_SI.ISO_8859-2
root at SRV# date
Pon 24 Apr 2006 13:52:17 CEST
---> above OK <---

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

root at web# uname -a
FreeBSD hostname 4.11-STABLE FreeBSD 4.11-STABLE #0: Sun Oct  9 00:32:20 
CEST 2005     root at hostname:/usr/obj/usr/src/sys/WEB  i386
root at web# echo $SHELL
/bin/csh
root at web# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
root at web# setenv LC_ALL sl_SI.ISO_8859-2
root at 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 at 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 at web1# uname -a
DragonFly hostname 1.4.3-RELEASE DragonFly 1.4.3-RELEASE #0: Wed Apr 12 
23:50:27 CEST 2006     root at hostname:/usr/obj/usr/src/sys/DRAGONFLY  i386
root at web1# echo $SHELL
/bin/tcsh
root at web1# ls /usr/share/locale/ | grep -i sl_si
sl_SI.ISO8859-2
sl_SI.ISO_8859-2
sl_SI.UTF-8
root at web1# setenv LC_ALL sl_SI.ISO_8859-2
root at web1# date
Mon Apr 24 13:53:18 CEST 2006
---> above NOT OK <---

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



More information about the Bugs mailing list