[MLton] Regressions (Mostly) Successful under Mingwin
Brent A. Fulgham
bfulgham@debian.org
Sun, 11 Jul 2004 23:28:12 -0700
Stephen Weeks wrote:
>>I've got working regression tests (that execute under
>>plain-vanilla Windows).
>>
>>
>
>Cool! You're definitely getting close. Most of the failures are also
>failures on Cygwin, so it's almost already as good.
>
>
Good -- I switched back to Cygwin to try to see what the "right" answers
were. When I saw they didn't work, I got nervous I had accidentally
broken something in the common code. That's a relief! :-)
>>1. Line endings:
>>
>>
>...
>
>
>>2. File path differences:
>>
>>
>
>Yes, these differences seem OK.
>
>
>
Actually, the file path thing turns out to be a problem. Undisciplined
as always, I decided to try building MLton to see what would happen.
The resulting binary actually runs, but when it starts trying to build
the basis library it dies with a Path exception.
I made some changes to try to handle DOS-style paths, and rebuilt the
Cygwin compiler. I'll probably try the Mingwin version again tomorrow.
>>3. date test fails:
>>
>>9c9
>>< test4 OK
>>
>>---
>>
>>
>>>test4 WRONG
>>>
>>>
>>I'm not sure where the text->date/time conversion is
>>taking place. Is this parsed in an SML module
>>somewhere?
>>
>>
>
>Date.{fromString,scan} are defined in:
>
> basis-library/system/date.sml
>
>Date.toString is defined there as well, and calls the underlying
>asctime function via Date_ascTime defined in runtime/basis/Date.c
>
>I'd bet the error is in the behavior of ascTime, since
>Date.{fromString,scan} are defined in pure SML.
>
>
I'll check it. One thing I noticed is the Windows library produces
dates with a leading zero, so "Jul 4 2004" displays as "Jul 04 2004",
which might be part of the problem.
Anyway, I'll play with the other stuff tomorrow and see where I get.
Thanks,
-Brent