Date: Fri, 24 Feb 2006 15:32:37 +0100 From: Fritz Heinrichmeyer <Fritz.Heinrichmeyer@FernUni-Hagen.de> To: questions@freebsd.org Subject: why does strftime not respect my locale settings? Message-ID: <43FF1905.5000505@Fernuni-Hagen.de>
next in thread | raw e-mail | index | archive | help
here is what locale says:
LANG=de_DE.ISO8859-15
LC_CTYPE="de_DE.ISO8859-15"
LC_COLLATE="de_DE.ISO8859-15"
LC_TIME="de_DE.ISO8859-15"
LC_NUMERIC="de_DE.ISO8859-15"
LC_MONETARY="de_DE.ISO8859-15"
LC_MESSAGES="de_DE.ISO8859-15"
LC_ALL=de_DE.ISO8859-15
but today
strftime(buffer, 1000, "%d %A %B", localtime(&timev));
delivers
24 Friday February
setlocale(LC_TIME, "de_DE.ISO8859-15");
strftime(buffer, 1000, "%d %A %B", localtime(&timev));
delivers
24 Freitag Februar
how can i change strftime without setting locale explicitly?
--
Fritz Heinrichmeyer FernUniversitaet, LG ES, 58084 Hagen (Germany)
tel:+49 2331/987-1166 fax:987-355
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?43FF1905.5000505>
