[Issue 5589] New: Incorrect definitions in core.stdc.locale (Windows)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Feb 15 02:23:49 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=5589

           Summary: Incorrect definitions in core.stdc.locale (Windows)
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: druntime
        AssignedTo: nobody at puremagic.com
        ReportedBy: johnch_atms at hotmail.com


--- Comment #0 from johnch_atms at hotmail.com 2011-02-15 02:20:46 PST ---
Looks like the Windows version of the locale.h header differs from that on
other platforms, so some changes need to be made to core.stdc.locale.

1) The lconv structure should end immediately after the n_sign_posn member.

2) The category constants should be as follows:

enum {
  LC_ALL = 0,
  LC_COLLATE = 1,
  LC_CTYPE = 2,
  LC_MONETARY = 3,
  LC_NUMERIC = 4,
  LC_TIME = 5
}

Also, LC_PAPER through to LC_IDENTIFICATION don't get defined in the Windows
header.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list