[Mono-dev] Re: Mono.Unix Filename Marshaling

Florian Weimer fw at deneb.enyo.de
Wed Oct 26 02:08:17 EDT 2005


* Jonathan Pryor:

>   Q What is Mono.Unix.UnixEncoding.EscapeByte?
>   A U+FFFF, which is guaranteed not to be a Unicode character at all.
>     I suppose someone might still try to use this in a filename, but I
>     think it's highly unlikely (famous last words, knock on wood...).

It seems that the UTF-8 decoder treats the byte sequence EF BF BF as
invalid.  Doesn't this mean that with your changes, it is encoded as
FFFF 00EF FFFF 00BF FFFF 00BF on the Mono side?

(I'm going to give your modifications a try later this week.)



More information about the Mono-devel-list mailing list