From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: UTF-8 character encoding in SVN log messages Date: Thu, 04 Feb 2010 08:26:53 +1100 Organization: Rapt Technologies Message-ID: <87636enh7m.fsf@lion.rapttech.com.au> References: <4b20f68d$0$269$14726298@news.sunsite.dk> <4b696d97$0$270$14726298@news.sunsite.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265233479 16486 80.91.229.12 (3 Feb 2010 21:44:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2010 21:44:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 03 22:44:37 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ncn1Y-0007z4-TY for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 22:44:37 +0100 Original-Received: from localhost ([127.0.0.1]:37419 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncn1Y-0001Pi-Bj for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 16:44:36 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news.astraweb.com!border2.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:yXKp5VOaI2o6hBiE6Il2r44Pbss= Original-Lines: 38 Original-NNTP-Posting-Host: 004d07eb.news.astraweb.com Original-X-Trace: DXC=L5EURJhmUlAI]J2Y9=AF]JL?0kYOcDh@J^gYlR9D^YaFJfVZ^BMI<9LP@T; >mBJe4H:6L7HHRIMnN Original-Xref: news.stanford.edu gnu.emacs.help:176599 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71668 Archived-At: Thomas Arildsen writes: > On Thu, 10 Dec 2009 23:02:50 +0100, Peter Dyballa wrote: > >> Am 10.12.2009 um 14:24 schrieb Thomas Arildsen: >> >>> Can I in some way configure Emacs/Subversion to open the log message >>> buffer to be saved with utf-8 encoding by default? For example by a >>> command line parameter to emacsclient? >> >> >> The latter does not work, which you can check by invoking emacsclient >> with --help. The former might work with >> >> (prefer-coding-system 'utf-8-unix) >> >> in your init file. Environment variables like LC_CTYPE set to an UTF-8 >> value should provoke the preferred use of UTF-8. Except you have set >> some non-UTF-8 language or whatever environment... >> > > Thanks, your suggestion seems to have solved the issue. > > Thomas Arildsen FYI From memory, there is a config setting you can put in your ~/.subversion/config file that also sets the encoding used in change logs. Normally, this would (I think( default to what the setting is on the local system i.e. LANG= and LC_* etc. However, if this is set to something like iso8859-1 and you set/force emacs to use UTF-8, you may get unwanted/unnecessary conversions that could lead to mixed encoding in the file (especially if you sometimes use other tools with svn). Tim -- tcross (at) rapttech dot com dot au