From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Seweryn Kokot Newsgroups: gmane.emacs.help Subject: problem with time-stamps on GNU/Linux and Windows Date: Thu, 04 Sep 2008 13:02:37 +0200 Message-ID: <874p4wrx6a.fsf@poczta.po.opole.pl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220525661 1472 80.91.229.12 (4 Sep 2008 10:54:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Sep 2008 10:54:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 04 12:55:16 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KbCUb-0000rW-3F for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 12:55:13 +0200 Original-Received: from localhost ([127.0.0.1]:58021 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbCTb-0002zI-Sk for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Sep 2008 06:54:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KbCTH-0002y6-Ln for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 06:53:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KbCTG-0002we-OB for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 06:53:51 -0400 Original-Received: from [199.232.76.173] (port=59764 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KbCTG-0002wZ-II for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 06:53:50 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:46895 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KbCTG-000106-3r for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 06:53:50 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1KbCT8-0001D3-Jq for help-gnu-emacs@gnu.org; Thu, 04 Sep 2008 10:53:42 +0000 Original-Received: from nat-warynskiego.po.opole.pl ([217.173.199.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 10:53:42 +0000 Original-Received: from s.kokot by nat-warynskiego.po.opole.pl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 04 Sep 2008 10:53:42 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 44 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nat-warynskiego.po.opole.pl X-PGP-FP: BF2E 7101 B6C4 CE71 527E 1A06 9B17 0C43 20EC 5AC1 X-PGP: 20EC5AC1 X-Operating-System: Debian GNU/Linux X-Homepage: http://www.skokot.po.opole.pl User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) Cancel-Lock: sha1:AUix0th/5qKx0gjXvQ2ZsC6NS98= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57254 Archived-At: Hello, Could you explain to me why I get slightly different time-stamps under Windows and Linux? This is what I get in Linux 2008-08-19 wto 07:26 and under Windows I get 2008-08-05 Wt 11:44 Namely the problem is with %a - abbreviated day of week. Here are the settings under Linux: (locale-info 'codeset): "ISO-8859-2" locale-coding-system: iso-latin-2 and under Windows I have locale-coding-system: iso-latin-2 system-time-locale: iso-latin-2 system-message-locale: iso-latin-2 (locale-info 'codeset): "cp1250" Under Linux iso-latin-2 is set by default and on Windows I have to put the following in .emacs file (setq locale-coding-system 'iso-latin-2) (setq system-message-locale 'iso-latin-2) (setq system-time-locale 'iso-latin-2) otherwise these values are cp1250, nil and nil I'm wondering why setting on windows (setq locale-coding-system 'iso-latin-2) has no impact on (locale-info 'codeset) which still gives "cp1250"? Any idea what should I do to get the same results on both operating systems? Thanks in advance, regards, Seweryn