Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006579OCamlplatform support (windows, cross-compilation, etc)public2014-09-25 10:562017-04-10 14:52
Assigned To 
PrioritylowSeveritytweakReproducibilityhave not tried
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006579: Different behavior of %g format under Windows
DescriptionBy default, Windows uses three digits for the exponent in scientific notation, while two digits are usually used on other systems. This can give different result and break some non-regression tests that compare textual outputs. I know there could be other sources of textual differences between Windows and Unix around display of floating point values, but this one seems to be easily fixable using _set_output_format : [^]

Is it a good idea to do that automatically upon startup of the OCaml runtime under Windows?
Attached Files

- Relationships

-  Notes
gasche (administrator)
2014-09-25 15:24

I think that's a reasonable idea indeed.
doligez (administrator)
2014-12-17 23:14

Just a remark, this is a rare case where Windows gets it right and Unix gets it wrong: Unix adds some useless digits, but not enough to guarantee a fixed width.

I'm on the fence.

- Issue History
Date Modified Username Field Change
2014-09-25 10:56 frisch New Issue
2014-09-25 15:24 gasche Note Added: 0012201
2014-12-17 23:14 doligez Note Added: 0012839
2014-12-17 23:14 doligez Status new => acknowledged
2014-12-17 23:14 doligez Tag Attached: junior_job
2016-03-23 14:22 doligez Target Version 4.03.0+dev / +beta1 => 4.03.1+dev
2017-02-16 14:01 doligez Target Version 4.03.1+dev => undecided
2017-02-23 16:46 doligez Category OCaml windows => platform support (windows, etc)
2017-02-23 17:16 doligez Category platform support (windows, etc) => platform support (windows, cross-compilation, etc)
2017-04-10 14:52 doligez Target Version undecided =>

Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker