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: Stefan Monnier
Subject: Re: Bug with UTF-8 string and dbus
Date: Wed, 09 Jun 2010 14:11:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>> 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.

AFAIK, Emacs's internal encoding is valid utf-8.  It uses private
characters for some things, but I don't think that makes it invalid.

> If you have a non-utf8 string
> you have lost already.

Not sure what you mean by "non-utf8 string".


        Stefan



reply via email to

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