Kent Karlsson wrote:
> 
> Well, the format is specified in:
> 
> 
>http://java.sun.com/j2se/1.4.1/docs/api/java/io/DataOutput.html#writeUTF(java.lang.String)
> 
> ...  The method does NOT write a NULL (of any kind) at the end of
> the string, and I have no idea why it modifies the representation of NULL.

I thought that the reason Java modified the representation of NUL was
so that Java strings containing NUL characters could be passed (via 
JNI) to native code as regular C (NUL-terminated) strings.


> PS
> NULL **is** "just another UnicoXXXXX ISO 6421 control character".
> It's C that misbehaves...

P.S.  Isn't that "NUL"?  ("NULL" is the null pointer preprocessor
constant in standard C.)


Daniel
-- 
Daniel Barclay
[EMAIL PROTECTED]
--
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/linux-utf8/

Reply via email to