This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ports/15500] New: ARM __aeabi_localeconv incorrect


http://sourceware.org/bugzilla/show_bug.cgi?id=15500

             Bug #: 15500
           Summary: ARM __aeabi_localeconv incorrect
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ports
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jsm28@gcc.gnu.org
                CC: carlos@redhat.com, roland@gnu.org
    Classification: Unclassified


ARM glibc's __aeabi_localeconv does:

struct lconv *
__aeabi_localeconv (void)
{
  return __localeconv ();
}

However, glibc orders the C99 fields in struct lconv thus:

  char int_p_cs_precedes;
  char int_p_sep_by_space;
  char int_n_cs_precedes;
  char int_n_sep_by_space;
  char int_p_sign_posn;
  char int_n_sign_posn;

but the __aeabi_lconv structure (defined in CLIBABI, ARM IHI 0039) has them
ordered thus:

  char int_p_cs_precedes;
  char int_n_cs_precedes;
  char int_p_sep_by_space;
  char int_n_sep_by_space;
  char int_p_sign_posn;
  char int_n_sign_posn;

and so a conversion layer is needed to swap int_p_sep_by_space and
int_n_cs_precedes.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]