Re: [Mono-dev] PtrToStringAnsi

2006-03-09 Thread Joshua Tauberer
Atsushi wrote: Mono does not support non-UTF8 multibyte conversion by design. That's ok, but whatever we marshal out we should be able to marshal back, yeah? Okay, so after some more digging and realizing things are more complicated than I thought, here's what I've learned: PtrToStringAnsi

Re: [Mono-dev] PtrToStringAnsi

2006-03-09 Thread Paolo Molaro
On 03/08/06 Joshua Tauberer wrote: While debugging a SqliteClient issue, I came across an interesting bug. The following returns null when I'm pretty sure it should not (it doesn't on Windows): Marshal.PtrToStringAnsi(Marshal.StringToCoTaskMemAnsi(ü)) In case the encoding of this email

[Mono-dev] PtrToStringAnsi

2006-03-08 Thread Joshua Tauberer
While debugging a SqliteClient issue, I came across an interesting bug. The following returns null when I'm pretty sure it should not (it doesn't on Windows): Marshal.PtrToStringAnsi(Marshal.StringToCoTaskMemAnsi(ü)) In case the encoding of this email gets messed up, that's a u with umlauts,

Re: [Mono-dev] PtrToStringAnsi

2006-03-08 Thread Atsushi Eno
Hello, Mono does not support non-UTF8 multibyte conversion by design. We shouldn't change its behavior from current one. Actually it is pretty classic matter which has been stated since 2003. http://lists.ximian.com/archives/public/mono-list/2003-June/014500.html It is Microsoft who should