If g_convert fails, set bytes_written to 0 and close the iconv descriptor
authorJeffrey Stedfast <fejj@ximian.com>
Mon, 21 Jan 2002 20:53:18 +0000 (20:53 +0000)
committerJeffrey Stedfast <fejj@src.gnome.org>
Mon, 21 Jan 2002 20:53:18 +0000 (20:53 +0000)
commitb23c1064bcf85bd31871c7931ce18f36cc43be4c
tree38241731c313942e45e765315fcc9f4a925c559d
parent0518fc417dff617989945c25d0ac3fb45e53fe07
If g_convert fails, set bytes_written to 0 and close the iconv descriptor

2002-01-21  Jeffrey Stedfast  <fejj@ximian.com>

* glib/gconvert.c (g_convert_with_fallback): If g_convert fails,
set bytes_written to 0 and close the iconv descriptor that was
opened a few lines above. On a successful return, calculate
bytes_written to be outp - dest instead of outp - str.
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gconvert.c