2005-03-29 Mike Kestner <mkestner@novell.com>

* glib/Marshaller.cs : special case ucs4 "0" conversion.
	[Fixes #74175]

svn path=/trunk/gtk-sharp/; revision=42337
This commit is contained in:
Mike Kestner 2005-03-29 15:28:02 +00:00
parent 4e73c0c204
commit 9001c6fa25
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2005-03-29 Mike Kestner <mkestner@novell.com>
* glib/Marshaller.cs : special case ucs4 "0" conversion.
[Fixes #74175]
2005-03-28 Mike Kestner <mkestner@novell.com>
* gdk/Pixbuf.custom : add FromDrawable static method and obsolete

View file

@ -211,6 +211,9 @@ namespace GLib {
public static char GUnicharToChar (uint ucs4_char)
{
if (ucs4_char == 0)
return (char) 0;
IntPtr raw_ret = gtksharp_unichar_to_utf8_string (ucs4_char);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
if (ret.Length > 1)