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: Eli Zaretskii
Subject: Re: how to change language of format-date-string
Date: Sat, 21 Mar 2015 17:47:08 +0200

> From: Rasmus <address@hidden>
> Date: Sat, 21 Mar 2015 12:37:39 +0100
> 
> Philipp Stephani <address@hidden> 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).



reply via email to

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