2005-01-08 Miguel de Icaza <miguel@ximian.com>
authorMiguel de Icaza <miguel@gnome.org>
Sun, 9 Jan 2005 02:09:54 +0000 (02:09 -0000)
committerMiguel de Icaza <miguel@gnome.org>
Sun, 9 Jan 2005 02:09:54 +0000 (02:09 -0000)
commite05a41f851486373289ab2c9686eeeaa7e2f7e74
treeeb4e960e3fba5db0077ef8cad884ca28c9f7983b
parenta04730664e2fa1b5e6f2dc03256c6f69b31a53e7
2005-01-08  Miguel de Icaza  <miguel@ximian.com>

* Int32Test.cs: Add a couple of new formatting tests.

2005-01-08  Miguel de Icaza  <miguel@ximian.com>

* IntegerFormatter.cs: The - sign inside the "negative" section in
a multi-format string means `show the sign' only if it is the
first token, not `copy verbatim'.  In the other sections it means
`copy-verbatim'.

This makes things like:  (-34).ToString ("#;-#") show up as "-34"
instead of "--34".

The bad news is that this code needs to be rewritten to handle all
the formatting cases, see bug #71112 for details.

svn path=/trunk/mcs/; revision=38559
mcs/class/corlib/System/ChangeLog
mcs/class/corlib/System/IntegerFormatter.cs
mcs/class/corlib/Test/System/ChangeLog
mcs/class/corlib/Test/System/ConvertTest.cs
mcs/class/corlib/Test/System/Int32Test.cs