[Mono-list] conversions

Jambunathan Jambunathan kjambunathan@novell.com
Sun, 26 Sep 2004 07:30:31 -0600


Hey Richard

This is definitely odd. 

Could you point us to the offending code or better still could you 
please submit a test report in bugzilla with a test case.

Regards,
Jambunathan  K.

>>> Richard Polton <Richard.Polton@morganstanley.com> 09/24/04 4:04 PM
>>>
Hi,

I was browsing the source code for Conversions.cs (or similar) in the 
VisualBasic (I think) package in 1.0.1 and came across a couple of 
oddities. The one which struck me in particular was the conversion of a

single character into a numeric type. It was performed by subtracting 
the absolute character '0' from the function parameter. This will only

work if the input character set is known to be ASCII or known to be 
ordered in the same way? So, my question is, is it a requirement of all

.NET (and Mono) applications that the character set used is ASCII or 
similar? I know the spec refers to the program as being encoded in 
Unicode but I couldn't find anything regarding the recognisable input
chars.

Richard
_______________________________________________
Mono-list maillist  -  Mono-list@lists.ximian.com 
http://lists.ximian.com/mailman/listinfo/mono-list