From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sebastien Vauban" Subject: Re: Suddenly, my timestamps get localized! Date: Thu, 27 Oct 2011 11:34:28 +0200 Message-ID: <8062japyl7.fsf@somewhere.org> References: <878vo95s70.fsf@thinkpad.tsdh.de> <80lis9tnkv.fsf@somewhere.org> <874nyx5pwv.fsf@thinkpad.tsdh.de> <80d3dltl0z.fsf@somewhere.org> <80bot2q3lk.fsf@somewhere.org> <87mxcm969m.fsf@thinkpad.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org-mXXj517/zsQ@public.gmane.org To: emacs-orgmode-mXXj517/zsQ@public.gmane.org Hi Tassilo, Tassilo Horn wrote: > "Sebastien Vauban" writes: > >> Just to confirm: >> >> (setq system-time-locale (getenv "en_US.utf8")) >> >> in my .emacs is not working for me: I get French timestamps (I mean: >> weekday abbreviations) in Org (on `C-c .', for example). > > Well, that line above tries to get the value of the environment variable > en_US.utf8. There is no such variable, so `getenv' returns nil leaving > you with the default setting of `system-time-locale'. No. Sorry, I just edited directly in the mail, when answering... but was apparently too fast (or I just didn't read it carefully before sending it). If can assure you I had (the effect of): (setq system-time-locale "en_US.utf8") in my .emacs. The real lines in my .emacs were: #+begin_src emacs-lisp ;; specify your character-set locale (setenv "LANG" "en_US.utf8") ;; system locale to use for formatting time values (e.g., timestamps in ;; Org mode files) (setq system-time-locale (getenv "LANG")) #+end_src Why setting LANG? Because that environment variable doesn't exist on Windows, and was needed to quiet SVN (stop reporting warnings). >> Setting it back, on-the-fly (with `C-x C-e') to "C" works: I get >> English timestamps. >> >> Though, setting it back once again to "en_US.utf8" works as well: I >> now still get English timestamps!? > > See. ;-) Case still open (for understanding it fully, on my side: why setting it early in my .emacs file is different than setting it afterward). Best regards, Seb -- Sebastien Vauban