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 libc/13140] New: no-break space as thousands_sep causes inconsistent output


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

             Bug #: 13140
           Summary: no-break space as thousands_sep causes inconsistent
                    output
           Product: glibc
           Version: 2.14
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper.fsp@gmail.com
        ReportedBy: myllynen@redhat.com
    Classification: Unclassified


localhost:~> cat test-grouping.c 
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
  if (setlocale(LC_ALL, argv[1]) == NULL)
    exit(EXIT_FAILURE);
  printf("%s:%'9d\n", argv[1], 123456);
  exit(EXIT_SUCCESS);
}
localhost:~> gcc test-grouping.c 
localhost:~> for l in en_US de_DE fi_FI ; do ./a.out $l.UTF-8 ; done
en_US.UTF-8:  123,456
de_DE.UTF-8:  123.456
fi_FI.UTF-8: 123Â456

I think the expected output would be:

en_US.UTF-8:  123,456
de_DE.UTF-8:  123.456
fi_FI.UTF-8:  123 456

-- 
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]