Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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
Developer Community or GitHub 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.
1. Create an app that uses DateTime.Now
2. Start the app on an actual device
3. It will crash
More details here:
@Marek, this is probably something in the MS reference sources, can you have a look?
Are the I18N assemblies are part of the application (Project Options / Build / iOS Build / Advanced).
Otherwise you'll end up without some pieces, e.g. like custom calendars, but that should the default one (it should not be throwing, something else must have changed).
Do you have any reproducible test case. The failing path should never be hit in your case but I am not sure what went wrong earlier to exhibit this behaviour
I think I managed to reproduce your issue
Fixed in mono master.
Probably easiest workaround is to set the values using properties instead of string keys (if possible)
Add ("Expires", value) is replaced in Expires = value
Not sure I understood the workaround here? My code that crashes on Thai (and a few more it seems) is this one:
titles.Add (DateTime.Now.AddDays (2).ToString("ddd dd MMM"));
Can I detect these locales and force it to use english maybe? I don't have I18N assemblies included.
It may crash on this line (as you do culture sensitive formatting) but the stack trace you linked to is very different.
Created attachment 11523 [details]
Crash when formatting dates
Crash when formatting dates
Sorry I linked to another developers issue since he had the same type of crash. I attached a screen shot of my crash in case it helps. Do you know which cultures are affected by this bug and maybe I can force them to use English formatting?
You linked to very different issue (which was still unresolved).
For your issue comment #2 applies. You need to include internationalisation codesets if you want to use special calendars.
Ok I will include the other calendars (I verified that it works). It didn't crash before though, but at least I have a working solution. Thanks!