emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Suddenly, my timestamps get localized!
Date: Thu, 27 Oct 2011 11:34:28 +0200	[thread overview]
Message-ID: <8062japyl7.fsf@somewhere.org> (raw)
In-Reply-To: 87mxcm969m.fsf@thinkpad.tsdh.de

Hi Tassilo,

Tassilo Horn wrote:
> "Sebastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org> 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	other threads:[~2011-10-27  9:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  9:36 Suddenly, my timestamps get localized! Tassilo Horn
2011-10-25  9:41 ` Sebastien Vauban
2011-10-25 10:13   ` Olaf Meeuwissen
2011-10-25 10:25   ` Tassilo Horn
2011-10-25 10:37     ` Sebastien Vauban
2011-10-25 10:39       ` Tassilo Horn
2011-10-27  7:46       ` Sebastien Vauban
2011-10-27  8:40         ` Tassilo Horn
2011-10-27  9:34           ` Sebastien Vauban [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8062japyl7.fsf@somewhere.org \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).