Bug 11363 - Maltese culture (mt-MT) has invalid long date pattern
Summary: Maltese culture (mt-MT) has invalid long date pattern
Alias: None
Product: Class Libraries
Classification: Mono
Component: mscorlib ()
Version: unspecified
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2013-03-22 17:24 UTC by Jon Skeet
Modified: 2013-03-26 06:42 UTC (History)
2 users (show)

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:

Description Jon Skeet 2013-03-22 17:24:23 UTC
Related bug (fixed in 3.0): https://bugzilla.xamarin.com/show_bug.cgi?id=9993

Description of Problem:

The Maltese LongDatePattern isn't just wrong - it's invalid. It tries to include a quote, but fails to escape it.
This means when one tries to parse the pattern, it looks like there's an unterminated quoted section.

Steps to reproduce the problem:
Run the following code:

        var culture = new CultureInfo("mt-MT");

Actual Results:     dddd, d' ta' 'MMMM yyyy
Expected Results:   dddd, d' ta\' 'MMMM yyyy

How often does this happen?  Every time.

Additional Information:

Mono version number: 3.0.6.
Comment 1 Marek Safar 2013-03-26 06:42:30 UTC
Fixed in master