emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Fix D-Bus string encoding.


From: Miles Bader
Subject: Re: [PATCH] Fix D-Bus string encoding.
Date: Thu, 10 Jun 2010 11:48:41 +0900

Eli Zaretskii <address@hidden> writes:
>> Thanks, I installed a slightly different fix which just uses the
>> string's bytes (internally stored in utf-8 already)
>
> I agree with Andreas here: we should not output unencoded internal
> representation of characters.  If nothing else, it will be a
> maintenance burden if and when we decide to change something in the
> internal representation, or if dbus will ever accept binary data.

Isn't there some function in Emacs which "converts", but internally
checks to see if the desired output encoding is the same as Emacs'
internal encoding, and avoids the actual conversion in that case?  That
would be both future-proof and efficient...

[If there isn't such a function, there should be!]

-Miles

-- 
Infancy, n. The period of our lives when, according to Wordsworth, 'Heaven
lies about us.' The world begins lying about us pretty soon afterward.



reply via email to

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