-
Notifications
You must be signed in to change notification settings - Fork 322
Fail to parse(?) decimals with FSharpValue.MakeRecord ONLY in iOS device with Region Spanish/Colombia #893
Comments
My guess is this is a mono issue, not an F# issue. The compiler doesn't have specific quirks for locale like this. cc @nosami |
Is possible. However it only manifest with FSharpValue.MakeRecord. I start to wonder if is a alignment issue, because I have found some case where some of the fields get back right (I have dozens of structs that serialize decimals values) |
If you test it with Windows (MS.NET, not Mono), then you will know if it's a Mono issue or not. |
The problem is, will MS.NET run on a iOS device? Because this ONLY happened on a iOS device. |
Just test in MS.NET in a normal non-iOS Windows-OS, if you cannot reproduce it, then it's definitely a Mono bug. |
Do you read this? At the start say:
But also, this is FSharp, on the FSharp Api for reflection. P.D: Maybe is not clear after all. On OSX/Linux it run on .NET core. |
Damm, after another heavy rewrite I found it also happened with .NET core and using the dict function. //let result = result |> Seq.toArray <--- THIS MAKE IT WORK, but ONLY IF STEP WITH A DEBUGGER!
result |> dict |
Closing out issues in this repo, if necessary please reopen at https://github.com/dotnet/fsharp, which is now the unified repository for F# work |
This bug not happened on Android, IOS emulator, osx, linux. Only on iOS device, when it have a region different to US/English.
I using reflection for decode Json values, and exactly in FSharpValue.MakeRecord the data of decimals get mangled.
Repro steps
this is correct.
It print:
See how all the decimal values get mangled.
Related information
Provide any related information
iOS 12.1.4
But show in others
Visual Studio Community 2017 for Mac
Version 7.8.1 (build 4)
Installation UUID: a339bf84-c405-45c0-8e47-f36faef900a8
GTK+ 2.24.23 (Raleigh theme)
Xamarin.Mac 5.0.0.0 ( / b40230c0)
Mono Framework MDK
Runtime:
Mono 5.16.0.221 (2018-06/b63e5378e38) (64-bit)
Package version: 516000221
NuGet
Version: 4.8.0.5385
Xamarin.iOS
Version: 12.2.1.15 (Visual Studio Community)
Hash: d60abd198
Branch: d15-9
Build date: 2019-02-01 12:23:29-0500
Operating System
Mac OS X 10.14.2
Darwin 18.2.0 Darwin Kernel Version 18.2.0
Mon Nov 12 20:24:46 PST 2018
root:xnu-4903.231.4~2/RELEASE_X86_64 x86_64
This CORRUP THE DATA of the databases of my clients, so is SEVERE.
The text was updated successfully, but these errors were encountered: