From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rasmus Newsgroups: gmane.emacs.help Subject: Re: how to change language of format-date-string Date: Sat, 21 Mar 2015 16:54:17 +0100 Message-ID: <87zj76uz12.fsf@gmx.us> References: <87d243xgoc.fsf@gmx.us> <874mpey41o.fsf@gmx.us> <837fuatksj.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1426953374 28536 80.91.229.3 (21 Mar 2015 15:56:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2015 15:56:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 21 16:55:58 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YZLka-00053y-KJ for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 16:55:48 +0100 Original-Received: from localhost ([::1]:48187 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZLkZ-0002Hb-Sp for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 11:55:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46374) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZLjZ-0001Js-2t for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 11:54:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZLjU-0003Nu-SR for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 11:54:45 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:41148) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZLjU-0003Nl-ME for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 11:54:40 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YZLjP-0003vA-1h for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 16:54:35 +0100 Original-Received: from 46.166.186.232 ([46.166.186.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Mar 2015 16:54:35 +0100 Original-Received: from rasmus by 46.166.186.232 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 21 Mar 2015 16:54:35 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 31 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 46.166.186.232 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAAFVBMVEUBAQFDPAdlWgigjgX+ 4AHLswSHdwl+6ZHqAAAAiklEQVRIx+2U3Q6AIAiFQcD3f+Rsy9aPJFi21jxXiH47gFOAIY8QA3ry QMxcyqe0FIHoBdwOkCpl2UGY1oIIqDbOfAAU15eAuWlF+lhdQF+HvLON88Eljl6ALAA94yBsV22c 5WmR10FaAMPFxbWkZoCsAN0p6eITCF7gXBJ1ANj0Lqq/xseAof9qAvK8C8gz03QeAAAAAElFTkSu QmCC User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:XWFYEByM4lBWDox7B4SLUpRfaVo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103245 Archived-At: Eli Zaretskii writes: >> From: Rasmus >> Date: Sat, 21 Mar 2015 12:37:39 +0100 > >> >> Philipp Stephani 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!