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: Wed, 09 Jun 2010 17:01:32 +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 1276095716 23350 80.91.229.12 (9 Jun 2010 15:01:56 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 15:01:56 +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 Wed Jun 09 17:01:54 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 1OMMmt-0004IQ-Kd for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 17:01:52 +0200 Original-Received: from localhost ([127.0.0.1]:43194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMMms-0007g9-SJ for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 11:01:50 -0400 Original-Received: from [140.186.70.92] (port=53525 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMMmm-0007aN-2q for emacs-devel@gnu.org; Wed, 09 Jun 2010 11:01:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMMml-0003hS-5f for emacs-devel@gnu.org; Wed, 09 Jun 2010 11:01:43 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:41534) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMMme-0003fk-Ib; Wed, 09 Jun 2010 11:01:36 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 5D1AB1C15D6F; Wed, 9 Jun 2010 17:01:33 +0200 (CEST) Original-Received: from hase.home (ppp-88-217-109-91.dynamic.mnet-online.de [88.217.109.91]) by mail.mnet-online.de (Postfix) with ESMTP id B83891C00198; Wed, 9 Jun 2010 17:01:32 +0200 (CEST) X-Yow: I know th'MAMBO!! I have a TWO-TONE CHEMISTRY SET!! 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.1 (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:125674 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. Neither does emacs' internal encoding. If you have a non-utf8 string you have lost already. 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."