[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: |
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.
- Bug with UTF-8 string and dbus, Julien Danjou, 2010/06/08
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/08
- Re: Bug with UTF-8 string and dbus,
Eli Zaretskii <=
- Re: Bug with UTF-8 string and dbus, Jan Djärv, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Julien Danjou, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Andreas Schwab, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Michael Albinus, 2010/06/09
- Re: Bug with UTF-8 string and dbus, Stefan Monnier, 2010/06/09