From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Fix D-Bus string encoding. Date: Thu, 10 Jun 2010 11:48:41 +0900 Message-ID: <877hm7iovq.fsf@catnip.gol.com> References: <87typdnr08.fsf@keller.adm.naquadah.org> <1276074981-8930-1-git-send-email-julien@danjou.info> Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276138141 27273 80.91.229.12 (10 Jun 2010 02:49:01 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 10 Jun 2010 02:49:01 +0000 (UTC) Cc: julien@danjou.info, Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 10 04:48:59 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@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 1OMXp9-0000Aq-QS for ged-emacs-devel@m.gmane.org; Thu, 10 Jun 2010 04:48:56 +0200 Original-Received: from localhost ([127.0.0.1]:57700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMXp8-0000be-Nz for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 22:48:54 -0400 Original-Received: from [140.186.70.92] (port=43802 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMXp3-0000ZL-Ar for emacs-devel@gnu.org; Wed, 09 Jun 2010 22:48:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMXp2-0003KR-AD for emacs-devel@gnu.org; Wed, 09 Jun 2010 22:48:49 -0400 Original-Received: from smtp11.dentaku.gol.com ([203.216.5.73]:38090) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMXp0-0003K6-La; Wed, 09 Jun 2010 22:48:46 -0400 Original-Received: from 218.231.154.7.eo.eaccess.ne.jp ([218.231.154.7] helo=catnip.gol.com) by smtp11.dentaku.gol.com with esmtpa (Dentaku) id 1OMXow-0000px-0P; Thu, 10 Jun 2010 11:48:42 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 3A126DF8B; Thu, 10 Jun 2010 11:48:41 +0900 (JST) System-Type: x86_64-unknown-linux-gnu In-Reply-To: (Eli Zaretskii's message of "Wed, 09 Jun 2010 21:56:24 -0400") Original-Lines: 21 X-Virus-Scanned: ClamAV GOL (outbound) X-Abuse-Complaints: abuse@gol.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125695 Archived-At: Eli Zaretskii writes: >> Thanks, I installed a slightly different fix which just uses the >> string's bytes (internally stored in utf-8 already) > > I agree with Andreas here: we should not output unencoded internal > representation of characters. If nothing else, it will be a > maintenance burden if and when we decide to change something in the > internal representation, or if dbus will ever accept binary data. Isn't there some function in Emacs which "converts", but internally checks to see if the desired output encoding is the same as Emacs' internal encoding, and avoids the actual conversion in that case? That would be both future-proof and efficient... [If there isn't such a function, there should be!] -Miles -- Infancy, n. The period of our lives when, according to Wordsworth, 'Heaven lies about us.' The world begins lying about us pretty soon afterward.