From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Bug with UTF-8 string and dbus Date: Thu, 10 Jun 2010 00:19:33 +0200 Message-ID: References: <87typdnr08.fsf@keller.adm.naquadah.org> <87r5kgg1ee.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 1276122857 21888 80.91.229.12 (9 Jun 2010 22:34:17 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 22:34:17 +0000 (UTC) Cc: Julien Danjou , Eli Zaretskii , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 10 00:34:14 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 1OMTqV-0001po-3r for ged-emacs-devel@m.gmane.org; Thu, 10 Jun 2010 00:34:14 +0200 Original-Received: from localhost ([127.0.0.1]:33073 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMTk7-0002jG-1L for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 18:27:27 -0400 Original-Received: from [140.186.70.92] (port=40690 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMTk0-0002YQ-0O for emacs-devel@gnu.org; Wed, 09 Jun 2010 18:27:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMTiM-0005BE-At for emacs-devel@gnu.org; Wed, 09 Jun 2010 18:25:39 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:59410) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMTcV-0004Ob-4D; Wed, 09 Jun 2010 18:19:35 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id DED0E1C1584C; Thu, 10 Jun 2010 00:19:33 +0200 (CEST) Original-Received: from igel.home (ppp-88-217-109-91.dynamic.mnet-online.de [88.217.109.91]) by mail.mnet-online.de (Postfix) with ESMTP id AE5E11C00102; Thu, 10 Jun 2010 00:19:33 +0200 (CEST) Original-Received: by igel.home (Postfix, from userid 501) id 56302CA297; Thu, 10 Jun 2010 00:19:33 +0200 (CEST) X-Yow: I haven't been married in over six years, but we had sexual counseling every day from Oral Roberts!! In-Reply-To: (Stefan Monnier's message of "Wed, 09 Jun 2010 10:08:29 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:125689 Archived-At: Stefan Monnier writes: > Since the spec says "must be valid UTF-8", I think that SDATA(object) > might even be better than encoding to utf-8 since encoding to utf-8 will > turn eight-bit-byte chars into raw bytes which will likely not make > a valid utf-8 output. IMHO unencoded data should never leave the internals of Emacs. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."