[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with UTF-8 string and dbus

From: Eli Zaretskii
Subject: Re: Bug with UTF-8 string and dbus
Date: Wed, 09 Jun 2010 05:30:14 -0400

> Date: Wed, 09 Jun 2010 10:51:08 +0200
> From: Jan Djärv <address@hidden>
> CC: Julien Danjou <address@hidden>, address@hidden, 
>  address@hidden
> > 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]