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:
parent
15603a6aaa
commit
0486846a0e
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue