bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

duplocale test fails on CentOS 6


From: Tom G. Christensen
Subject: duplocale test fails on CentOS 6
Date: Fri, 22 Sep 2017 20:57:46 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0

Hello,

The duplocale test is failling on CentOS 6:

test-duplocale.c:187: assertion 'strcmp (results.monetary, expected_results.monetary) == 0' failed

I ran it under gdb to see the values:
(gdb) run
Starting program: /home/tgc/projects/gnulib/duplocale/gltests/test-duplocale

Breakpoint 1, test_with_locale_parameter () at test-duplocale.c:187
187 ASSERT (strcmp (results.monetary, expected_results.monetary) == 0); Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.209.el6_9.2.x86_64
(gdb) p results.monetary
$1 = "$123,75\000\202\254\000\377\377\177\000\000\001\000\000\000\000\000\000\000H\347\377\367\377\177\000\000\177U\335q\000\000\000\000\226V\336\367\377\177", '\000' <repeats 11 times>"\336, \377\377\377\177\000\000?\000\000\000\000\000\000\000\000\336\377\377\377\177\000\000\003\000\000\000\063,5\000P\253\377\367\377\177\000\000.N="
(gdb) p expected_results.monetary
$2 = "$123.75\000\350\344\377\367\377\177\000\000\320\337\377\377\377\177\000\000\370\337\377\377\377\177\000\000\220\341\377\367\377\177\000\000\230\253\377\367\377\177\000\000.N=\366\000\000\000\000jb\336\367\377\177\000\000\000\000\000\000\000\000\000\000\230\253\377\367\377\177\000\000\001\000\000\000\063,5\000\000\000\000\000\000\000\000\000\001\000\000"

Ignoring the garbage you can see a comma where the dot was expected.

-tgc



reply via email to

[Prev in Thread] Current Thread [Next in Thread]