[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: DBus API problems & UTF-8
From:       Matthew Johnson <dbus () matthew ! ath ! cx>
Date:       2006-06-12 12:08:35
Message-ID: Pine.LNX.4.63.0606121304480.27381 () illythia ! matthew ! ath ! cx
[Download RAW message or body]


On Mon, 12 Jun 2006, Kimmo Hämäläinen wrote:
>
> Yes, I'm sure Gtk application developers like it, but sometimes UTF-8
> does not make much sense. Sometimes they just want to pass C strings
> around conveniently.
>
The point is that you don't know who is calling your DBus functions,
from what language. If you export a method then your programs might be
happy talking iso-whatever, but another programmer writing in Qt, Java
and so on might not be. Not everyone has C-strings, as a Java developer
I don't want to have to read in your byte array and convert it to UTF8
(which all strings are in Java).

DBus should be standardising what goes over the wire so that it is easy
for people to access your interfaces from any language. Allowing
arbitrary encodings does not support this.

Matt

-- 
Matthew Johnson
http://www.matthew.ath.cx/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic