emacs-devel
[Top][All Lists]
Advanced

[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: Tue, 08 Jun 2010 21:17:02 -0400

> From: Stefan Monnier <address@hidden>
> Date: Tue, 08 Jun 2010 20:43:37 -0400
> Cc: address@hidden
> 
> > 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).

Using unencoded SDATA would be wrong with eight-bit characters (aka
raw bytes).  I'd suggest to encode, to be on the safe side.



reply via email to

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