-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
arenevier wrote:
> Hi,
> I have a xpcom C++ component whose main method is
>
> NS_IMETHODIMP nsMyComp::Read(const nsACString & aStr, const nsACString &
> aContent, const nsACString & aPriority)
>
> my idl is:
>
> void read(in ACString str, in ACString content, in ACString priority);
>
> this works fine on some computer (debian unstable, xulrunner 1.8.1), but it
> does
> not work on some other computers (same os, same xulrunner version).
>
> I call this method from javascript with comp.read("claire");
>
> On computer where everything works fine, aStr is utf8.
>
> On computer where it does not work, it seems that aStr (and also aContent and
> aPiority) are transformed to utf16.
I've solved the problem by replacing
void read(in ACString str, in ACString content, in ACString priority);
with
void read(in AUTF8String voice, in AUTF8String content, in AUTF8String
priority);
in my idl file.
It seems to work fine on any computer now.
arno
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGzFBXiH9aBScBsrMRApkuAJ9G/75VtY+cHfHtlS10ERWqMaiuPQCgiBtB
fYU+jWbnoAefhRtfFl0T6DA=
=5QWI
-----END PGP SIGNATURE-----
_______________________________________________
dev-tech-xpcom mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-xpcom