unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Rasmus <rasmus@gmx.us>
To: help-gnu-emacs@gnu.org
Subject: Re: how to change language of format-date-string
Date: Sat, 21 Mar 2015 16:54:17 +0100	[thread overview]
Message-ID: <87zj76uz12.fsf@gmx.us> (raw)
In-Reply-To: 837fuatksj.fsf@gnu.org

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Rasmus <rasmus@gmx.us>
>> Date: Sat, 21 Mar 2015 12:37:39 +0100
>
>> 
>> Philipp Stephani <p.stephani2@gmail.com> writes:
>> 
>> > If you only want to change the language for format-time-string, use the
>> > system-time-locale variable:
>> >
>> > (setq system-time-locale "da_DK.UTF-8")
>> 
>> Thanks that works.
>
> If you set system-time-locale alone, without also setting
> locale-coding-system to the same encoding as specified by
> system-time-locale, you will get garbled strings (unless you _know_
> that the encoding of both locales is the same, which in practice can
> only be true if they use UTF-8).

I conclude this is a nontrivial problem with a pretty local-specific
solution.  It's a shame.  It would be quite useful when composing
documents in different languages (especially in terms of %B).

Thanks for the tips.

—Rasmus

-- 
Enough with the bla bla!




  reply	other threads:[~2015-03-21 15:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21  1:50 how to change language of format-date-string Rasmus
2015-03-21  8:21 ` Philipp Stephani
2015-03-21 11:37   ` Rasmus
2015-03-21 12:30     ` Eli Zaretskii
2015-03-21 12:48       ` Rasmus
2015-03-21 13:20         ` Eli Zaretskii
2015-03-21 15:47     ` Eli Zaretskii
2015-03-21 15:54       ` Rasmus [this message]
2015-03-21 16:47         ` Eli Zaretskii
     [not found]       ` <mailman.2458.1426953287.31049.help-gnu-emacs@gnu.org>
2015-03-21 19:12         ` Emanuel Berg
2015-03-21  8:36 ` Eli Zaretskii
     [not found] ` <mailman.2436.1426926072.31049.help-gnu-emacs@gnu.org>
2015-03-21 19:52   ` Emanuel Berg
     [not found] <mailman.2427.1426902650.31049.help-gnu-emacs@gnu.org>
2015-03-21  2:41 ` Emanuel Berg
2015-03-21  2:48   ` Rasmus

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.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87zj76uz12.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=help-gnu-emacs@gnu.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.
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).