emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Suddenly, my timestamps get localized!


From: Sebastien Vauban
Subject: Re: [O] Suddenly, my timestamps get localized!
Date: Thu, 27 Oct 2011 11:34:28 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (windows-nt)

Hi Tassilo,

Tassilo Horn wrote:
> "Sebastien Vauban" <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]