[Mono-list] BUG: Console.ReadLine()

Jaroslaw Kowalski Jaroslaw Kowalski <jarek@atm.com.pl>
Mon, 13 May 2002 21:48:43 +0200 (CEST)


I've recently updated mono from CVS, compiled and found out that I'm no
longer able to run this very sophisticated application:

-----------------------------------------------
using System;

namespace test2
{
        class test2
        {
                [STAThread]
                static void Main(string[] args)
                {
                        string s = Console.ReadLine();
                }
        }
}
-------------------------------------------------

I get the following errors:

========================================
(process:29080): ** WARNING **: console_read: error looking up console
handle 0x5

(process:29080): ** ERROR **: file unicode.c: line 437
(ves_icall_iconv_get_char_count): assertion failed: (mono_array_length
(bytes) >= (idx + count))
aborting...
=======================================

Environment: Red Hat Linux 7.2/Intel

Is it my fault - are there any new tricks in the compilation process, or
the code is broken?

Regards,

Jarek