Bug 11739 - Formatting on a ToString() method with a ; separator gets ignored
Summary: Formatting on a ToString() method with a ; separator gets ignored
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: 2.10.x
Hardware: Macintosh Mac OS
: --- major
Target Milestone: Untriaged
Assignee: Marek Safar
Depends on:
Reported: 2013-04-11 11:51 UTC by Chris Hardy [MSFT]
Modified: 2013-04-24 04:31 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Chris Hardy [MSFT] 2013-04-11 11:51:21 UTC
Running the following code on a Mono console app

string formatString = "p 00.0000\\';n 0000.00\\';0.#\\'";
double d1 = 8.32663472; 
double d2 = -1.1345343;
double d3 = 0.0;
string positive = d1.ToString(formatString, CultureInfo.GetCultureInfo("en-US"));
string negative = d2.ToString(formatString, CultureInfo.GetCultureInfo("en-US"));
string zero = d3.ToString(formatString, CultureInfo.GetCultureInfo("en-US"));
System.Console.WriteLine (positive);
System.Console.WriteLine (negative);
System.Console.WriteLine (zero);


p 08.3266';n 347200'
p 00.0000';n 000000'

instead of the following in a .NET console app

p 08.3266'
n 0001.13'
Comment 1 Marek Safar 2013-04-24 04:31:32 UTC
Fixed in master