2004-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* io-layer/io.c:
(FindFirstFile): unlock the handle if FindNextFile fails.
(FindNextFile): g_free a couple of pointers before retrying.
* io-layer/wait.c:
(WaitForMultipleObjects): if only one handle provided, use
WaitForSingleObject.
* utils/strenc.c:
(mono_unicode_from_external): UTF8 is the default, not the preferred
encoding, ie, try MONO_EXTERNAL_ENCODINGS first. When "default_locale"
was passed in the env. var., it always failed because we were passing
"default_locale" to g_convert. Also fixed the byte count for non-UTF8
conversions.
(mono_utf8_from_external): UTF8 is the default, not the preferred one.
Fixes bug #53166.
svn path=/trunk/mono/; revision=22385