fi wrote:
This obviously doesn't work with UTF-16BE, here I have to swap bytes. But is this always the case with PRUnichar, or does it only work on my machine, having the particular processor it has? I.E. will PRUnichar work only with UTF-16BE in this way on other machines with different processors and/or different operating systems?
PRUnichar is in the native byte ordering (just like PRInt32, PRInt16, etc). So indeed, there are machines where you can't cast an UTF-16LE string to a PRUnichar* with the expected result.
Unfortunately I didn't find a comment in prtypes.h. May be the answer is obvious and trivial, but I don't know it.
Yeah... probably should be documented. File a bug I guess. -christian -- All the world's a stage, And all the men and women merely players: They have their exits and their entrances; And one man in his time plays many parts, [...] --W. Shakespeare _______________________________________________ dev-tech-xpcom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-xpcom
