help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to change language of format-date-string


From: Rasmus
Subject: Re: how to change language of format-date-string
Date: Sat, 21 Mar 2015 16:54:17 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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 via email to

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