From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: how to change language of format-date-string Date: Sat, 21 Mar 2015 15:20:29 +0200 Message-ID: <83d242trky.fsf@gnu.org> References: <87d243xgoc.fsf@gmx.us> <874mpey41o.fsf@gmx.us> <83h9tettvh.fsf@gnu.org> <87oanmwm6x.fsf@gmx.us> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1426944069 14556 80.91.229.3 (21 Mar 2015 13:21:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Mar 2015 13:21:09 +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 14:21:00 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 1YZJKh-0000rC-Da for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 14:20:55 +0100 Original-Received: from localhost ([::1]:47808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZJKg-0004tW-LU for geh-help-gnu-emacs@m.gmane.org; Sat, 21 Mar 2015 09:20:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZJKQ-0004tR-Sn for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 09:20:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZJKN-0005UR-J9 for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 09:20:38 -0400 Original-Received: from mtaout27.012.net.il ([80.179.55.183]:50026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZJKN-0005Tq-5L for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 09:20:35 -0400 Original-Received: from conversion-daemon.mtaout27.012.net.il by mtaout27.012.net.il (HyperSendmail v2007.08) id <0NLK00M00CSB9700@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 15:15:16 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout27.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NLK00DAECTGLR70@mtaout27.012.net.il> for help-gnu-emacs@gnu.org; Sat, 21 Mar 2015 15:15:16 +0200 (IST) In-reply-to: <87oanmwm6x.fsf@gmx.us> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.183 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:103243 Archived-At: > From: Rasmus > Date: Sat, 21 Mar 2015 13:48:38 +0100 > > Eli Zaretskii writes: > > >> From: Rasmus > >> Date: Sat, 21 Mar 2015 12:37:39 +0100 > >> > >> > (setq system-time-locale "da_DK.UTF-8") > >> > >> Thanks that works. Is this Unix specific or would it also work in > >> Windows? > > > > It works for Windows, but the locale names are different on Windows, > > and UTF-8 is not supported as the locale's encoding. > > Is there a OS-agnostic way to change a locale? Not sure what you are asking here. You cannot even change a locale on a Unix system without knowing that the locale is installed on that system; not all the locales are. So no, AFAIK there's no way of changing the locale without knowing something about the system on which you do that, and without adapting the locale to that system.