[Mono-list] Problem with Encoding.Default

Paolo Molaro lupus@ximian.com
Sat, 16 Nov 2002 15:36:18 +0100


On 11/16/02 Zaphod wrote:
> On Sat, Nov 16, 2002 at 09:45:08AM +0100, Carlos Guzmán Álvarez wrote:
> > I´m having problems with default encoding with mono on linux
> > if i make this Encoding.Default.GetByteCount("localhost.localdomain")
> > with mono on linux returns 24 and with ms .net on Windows returns 21.
> > 
> > I´m not sure if this is a problem of mono cvs sources or a problem 
> > withmy mono installation can anybody try it with mono on linux please??
> 
> I tried looking at the source code and found that it belonged to .GNU 
> 
>  * Copyright (c) 2001, 2002  Southern Storm Software, Pty Ltd
> 
> So it's not a mono bug ... it's a .GNU bug .. ;-) 

In the current mono cvs code the result is 21, as expected.
The orginal poster may be using a different version of mono that used
the utf-8 encoder that emits the identifier at the start of the string
(that's 3 bytes, in fact).

> In fact it was exactly the same code except that it was in X11 license
> while the .GNU code was GPL'd .... How can this license switch be possible ?.

The copyright author can license his code however he likes.

> Have the 2 projects merged ? ...

No, but the pnet people use code from the mono project since our license
allows that, and we use code from pnet if they relicense it for our use.
It was announced on this list a while ago.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better