2005-01-12 Mike Kestner <mkestner@novell.com>

* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.
	[Fixes #77097]

svn path=/trunk/gtk-sharp/; revision=55456
This commit is contained in:
Mike Kestner 2006-01-12 20:24:57 +00:00
parent 15603a6aaa
commit 0486846a0e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2005-01-12 Mike Kestner <mkestner@novell.com>
* sources/MethodBody.cs : use Utf8.GetByteCount for hidden len params.
[Fixes #77097]
2005-01-11 Mike Kestner <mkestner@novell.com>
* bootstrap-2.8 : bump version to 2.8.0

View file

@ -71,7 +71,7 @@ namespace GtkSharp.Generation {
}
} else if (i > 0 && parameters [i - 1].IsString && p.IsLength) {
string string_name = (i == 1 && is_set) ? "value" : parameters [i - 1].Name;
result[i] = igen.CallByName (CastFromInt (p.CSType) + string_name + ".Length");
result[i] = igen.CallByName (CastFromInt (p.CSType) + "System.Text.Encoding.UTF8.GetByteCount (" + string_name + ")");
continue;
} else if (p.IsArray && p.MarshalType != p.CSType) {
result[i] = "native_" + p.Name;