2004-01-22 Gonzalo Paniagua Javier <gonzalo@ximian.com>
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 22 Jan 2004 07:32:50 +0000 (07:32 -0000)
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>
Thu, 22 Jan 2004 07:32:50 +0000 (07:32 -0000)
commitd6b5e2a238d13d70b620bd5e2a99609fbe153c11
tree0e486b41e625169cf7f07a462f9dde920b8de426
parentfadb6c7f52b55252d12f68933f0ef4d3b3d52970
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
mono/io-layer/ChangeLog
mono/io-layer/io.c
mono/io-layer/wait.c
mono/utils/ChangeLog
mono/utils/strenc.c