I'm (almost desperately now) trying to localize the output of date(1).

The localization i'm going for, is da_DK.ISO8859-1 which exists on the system:

$ ls /usr/share/locale/da_DK.ISO8859-1
LC_CTYPE

I have - for a starters - added the following to the default-class in
/etc/login:

:setenv=LC_CTYPE=da_DK.ISO8859-1:\

and using the in-build function set whithout any arguments i am also
able to confirm that the variable is set:

LC_CTYPEda_DK.ISO8859-1

I was under the impression, that this also affected LC_TIME but
apperently not, as date still prints the date in the international
format:

$ date
Sun Apr 30 12:05:11 CEST 2006

Setting LC_TIME didn't affect the result much:

$ export LC_TIME=da_DK.ISO8859-1
$ date
Sun Apr 30 12:05:40 CEST 2006
$

And neither did setting LC_ALL, LANG nor LC_MESSAGES:

$ export LC_ALL=da_DK.ISO8859-1
$ date
Sun Apr 30 12:06:41 CEST 2006
$ export LANG=da_DK.ISO8859-1
$ date
Sun Apr 30 12:06:46 CEST 2006
$ export LC_MESSAGES=da_DK.ISO8859-1
$ date
Sun Apr 30 12:07:09 CEST 2006
$

Even rebuilding date from /usr/src/bin/date with all these variables
didn't have any effect on the result :(

Looking through openbsd.org, man -k, the .mk-files, the mailinglist
archive and usenet (through groups.google.com) hasn't really presented
any solution for me either :(

--
Regards
Henrik

Reply via email to