From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Bug with UTF-8 string and dbus Date: Tue, 08 Jun 2010 20:43:37 -0400 Message-ID: References: <87typdnr08.fsf@keller.adm.naquadah.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276044227 11938 80.91.229.12 (9 Jun 2010 00:43:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 00:43:47 +0000 (UTC) Cc: emacs-devel@gnu.org To: Julien Danjou Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 02:43:46 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 1OM9OT-0005Sk-ND for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 02:43:46 +0200 Original-Received: from localhost ([127.0.0.1]:46758 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM9OT-00051r-35 for ged-emacs-devel@m.gmane.org; Tue, 08 Jun 2010 20:43:45 -0400 Original-Received: from [140.186.70.92] (port=33538 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OM9OO-000504-2G for emacs-devel@gnu.org; Tue, 08 Jun 2010 20:43:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OM9OM-0004Vf-Fi for emacs-devel@gnu.org; Tue, 08 Jun 2010 20:43:39 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.183]:54454 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OM9OM-0004Va-DZ for emacs-devel@gnu.org; Tue, 08 Jun 2010 20:43:38 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEADeADkxFpYgE/2dsb2JhbACeRHLAC4UWBIxo X-IronPort-AV: E=Sophos;i="4.53,387,1272859200"; d="scan'208";a="67638223" Original-Received: from 69-165-136-4.dsl.teksavvy.com (HELO pastel.home) ([69.165.136.4]) by ironport2-out.pppoe.ca with ESMTP; 08 Jun 2010 20:43:37 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B4F188175; Tue, 8 Jun 2010 20:43:37 -0400 (EDT) In-Reply-To: <87typdnr08.fsf@keller.adm.naquadah.org> (Julien Danjou's message of "Tue, 08 Jun 2010 23:39:19 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:125647 Archived-At: > 492 char *val = SDATA (Fstring_make_unibyte (object)); Fstring_make_unibyte is wrong here. Most likely, if the D-Bus specification mandates UTF-8, the better thing to do would be either to encode using utf-8, or to take advantage of the fact that Emacs already uses utf-8 internally and pass just SDATA (object). Stefan