From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bug with UTF-8 string and dbus Date: Wed, 09 Jun 2010 05:30:14 -0400 Message-ID: References: <87typdnr08.fsf@keller.adm.naquadah.org> <87r5kgg1ee.fsf@keller.adm.naquadah.org> <4C0F55FC.8060001@swipnet.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: dough.gmane.org 1276075863 964 80.91.229.12 (9 Jun 2010 09:31:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 09:31:03 +0000 (UTC) Cc: julien@danjou.info, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 11:31:01 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 1OMHci-0003Er-Pc for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 11:31:01 +0200 Original-Received: from localhost ([127.0.0.1]:43859 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMHch-000252-OE for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 05:30:59 -0400 Original-Received: from [199.232.76.173] (port=53825 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMHc0-0001pz-C9 for emacs-devel@gnu.org; Wed, 09 Jun 2010 05:30:16 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1OMHbz-0002Fd-8w for emacs-devel@gnu.org; Wed, 09 Jun 2010 05:30:16 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48254) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1OMHby-0002FX-Tq for emacs-devel@gnu.org; Wed, 09 Jun 2010 05:30:15 -0400 Original-Received: from eliz by fencepost.gnu.org with local (Exim 4.69) (envelope-from ) id 1OMHby-0001Us-0a; Wed, 09 Jun 2010 05:30:14 -0400 In-reply-to: <4C0F55FC.8060001@swipnet.se> (message from =?ISO-8859-1?Q?Jan_Dj=E4rv?= on Wed, 09 Jun 2010 10:51:08 +0200) X-detected-operating-system: by monty-python.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:125668 Archived-At: > Date: Wed, 09 Jun 2010 10:51:08 +0200 > From: Jan Djärv > CC: Julien Danjou , monnier@iro.umontreal.ca, > emacs-devel@gnu.org > > > Here's one way: > > > > code_convert_string_norecord (SDATA (object), Qutf_8, 1); > > > > (Make sure you include coding.h, to have Qutf_8 declared.) > > > > You will see quite a few other places we use this in the sources. > > That is not right, code_convert_string_norecord takes a Lisp_Object as first > argument. You are right, sorry. The first argument should be object itself (assuming it is a Lisp string). If it is a C string, then it should be run through make_unibyte_string first.