Bug 34258 - MonoTests.System.DecimalTest.DecimalDivision should not fail for non-C locale
Summary: MonoTests.System.DecimalTest.DecimalDivision should not fail for non-C locale
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Class Libraries
Classification: Mono
Component: System ()
Version: master
Hardware: PC Other
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-09-24 16:38 UTC by Marcin Cieślak
Modified: 2015-10-05 12:33 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Marcin Cieślak 2015-09-24 16:38:46 UTC
Running with tests with LANG=pl_PL.UTF-8 :

1) MonoTests.System.DecimalTest.DecimalDivision_24411 :   String lengths are both 4. Strings differ at index 1.
  Expected: "0.45"
  But was:  "0,45"
  ------------^

at MonoTests.System.DecimalTest.DecimalDivision_24411 () [0x00030] in /home/saper/sw/mono/mcs/class/corlib/Test/System/DecimalTest.cs:1602
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /home/saper/sw/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:295

2) MonoTests.System.DecimalTest.RoundToString_Bug14822 :   #1
  String lengths are both 5. Strings differ at index 1.
  Expected: "1.600"
  But was:  "1,600"
  ------------^

at MonoTests.System.DecimalTest.RoundToString_Bug14822 () [0x00017] in /home/saper/sw/mono/mcs/class/corlib/Test/System/DecimalTest.cs:1574
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00038] in /home/saper/sw/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:295

3) MonoTests.System.DecimalTest.TrailingZerosBug :   String lengths are both 3. Strings differ at index 1.
  Expected: "0.2"
  But was:  "0,2"
  ------------^

at MonoTests.System.DecimalTest.TrailingZerosBug () [0x0001e] in /home/saper/sw/mono/mcs/class/corlib/Test/System/DecimalTest.cs:1611
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00038] in /home/saper/sw/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:295

4) MonoTests.System.DoubleTest.Parse : #H1: 3 5
at MonoTests.System.DoubleTest.Parse () [0x002ef] in /home/saper/sw/mono/mcs/class/corlib/Test/System/DoubleTest.cs:215
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Global
ization.CultureInfo culture) [0x00038] in /home/saper/sw/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:295
Comment 1 Marek Safar 2015-10-05 10:46:29 UTC
Works for me as expected on Mac with Mono 4.2.
Comment 2 Marcin Cieślak 2015-10-05 12:33:42 UTC
This was FreeBSD 10.2