[Top][All Lists]

[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 18:47:30 +0200

> From: Rasmus <>
> Date: Sat, 21 Mar 2015 16:54:17 +0100
> >> > (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).

I don't see how it is less trivial in Emacs than it is in any other
program.  Changing the locale on the fly is not something you are
supposed to do a lot, so it's little wonder it's complicated.  And we
didn't even start talking about locale's local to a thread, only about
a global program-wide locale.

reply via email to

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