Bug 313176 (MONO51174) - NumberFormatInfo in metadata/locales.c
Summary: NumberFormatInfo in metadata/locales.c
Status: RESOLVED FIXED
Alias: MONO51174
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Major
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2003-11-19 23:08 UTC by Mohammad DAMT
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
the patch (3.99 KB, patch)
2003-11-19 23:09 UTC, Thomas Wiest
Details | Diff
test case (1.62 KB, text/plain)
2003-11-20 04:01 UTC, Thomas Wiest
Details
an improved version of locales.c (7.79 KB, patch)
2003-12-01 11:05 UTC, Thomas Wiest
Details | Diff
this is the patch to corlib/System.Globalization/NumberFormatInfo.cs (6.63 KB, patch)
2003-12-01 11:06 UTC, Thomas Wiest
Details | Diff
more improved test case (512 bytes, text/plain)
2003-12-01 11:07 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:19:46 UTC


---- Reported by ximian@aksi.mdamt.net 2003-11-19 16:08:21 MST ----

this patch will fill NumberFormatInfo in CultureInfo constructor



---- Additional Comments From ximian@aksi.mdamt.net 2003-11-19 16:09:21 MST ----

Created an attachment (id=165175)
the patch




---- Additional Comments From ximian@aksi.mdamt.net 2003-11-19 21:01:12 MST ----

Created an attachment (id=165176)
test case




---- Additional Comments From ximian@aksi.mdamt.net 2003-12-01 04:05:49 MST ----

Created an attachment (id=165177)
an improved version of locales.c




---- Additional Comments From ximian@aksi.mdamt.net 2003-12-01 04:06:50 MST ----

Created an attachment (id=165178)
this is the patch to corlib/System.Globalization/NumberFormatInfo.cs




---- Additional Comments From ximian@aksi.mdamt.net 2003-12-01 04:07:41 MST ----

Created an attachment (id=165179)
more improved test case




---- Additional Comments From ximian@aksi.mdamt.net 2003-12-01 04:15:21 MST ----

I just uploaded 3 files. the patch for locales.c is improved by adding
several fields. Some NumberFormatInfo fields (such as *DecimalDigits,
*GroupSizes, *Pattern) is parsed in NumberFormatInfo:InitPatterns()
(see the second file). This method is called by locales.c.

note.
the test case displays a wrong percent format, however the
PercentDecimalDigits is parsed correctly by InitPatterns, so I think
this is another bug.




---- Additional Comments From miguel@ximian.com 2003-12-01 23:02:52 MST ----

Dick, Mohammad has sent us the copyright assignments, we can now check
this in.



---- Additional Comments From dick@ximian.com 2003-12-02 05:07:37 MST ----

Patches committed.  Thanks.


This bug blocked bug(s) 51443.
Imported an attachment (id=165175)
Imported an attachment (id=165176)
Imported an attachment (id=165177)
Imported an attachment (id=165178)
Imported an attachment (id=165179)

Unknown operating system unknown. Setting to default OS "Other".