From owner-freebsd-questions@FreeBSD.ORG Fri Feb 24 16:41:56 2006 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E2E816A420 for ; Fri, 24 Feb 2006 16:41:56 +0000 (GMT) (envelope-from heinricf@mailstore.FernUni-Hagen.de) Received: from cl-mailhost.FernUni-Hagen.de (sycamore.fernuni-hagen.de [132.176.114.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7D12843D5E for ; Fri, 24 Feb 2006 16:41:55 +0000 (GMT) (envelope-from heinricf@mailstore.FernUni-Hagen.de) Received: from mailstore.fernuni-hagen.de ([132.176.114.185]) by cl-mailhost.FernUni-Hagen.de with esmtp (Exim 4.24) id 1FCevv-0006CZ-Nt for questions@freebsd.org; Fri, 24 Feb 2006 16:32:39 +0100 Received: from [132.176.7.6] (account heinricf [132.176.7.6] verified) by mailstore.fernuni-hagen.de (CommuniGate Pro SMTP 4.0.6) with ESMTP-TLS id 14696407 for questions@freebsd.org; Fri, 24 Feb 2006 15:32:38 +0100 Message-ID: <43FF1905.5000505@Fernuni-Hagen.de> Date: Fri, 24 Feb 2006 15:32:37 +0100 From: Fritz Heinrichmeyer User-Agent: Thunderbird 1.5 (X11/20060209) MIME-Version: 1.0 To: questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-prewhitelist: your reply will pass through without greylisting Cc: Subject: why does strftime not respect my locale settings? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2006 16:41:56 -0000 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