This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 gdb/20449] New: Test printing/parsing floating points with locale uses comma as decimal separator


https://sourceware.org/bugzilla/show_bug.cgi?id=20449

            Bug ID: 20449
           Summary: Test printing/parsing floating points with locale uses
                    comma as decimal separator
           Product: gdb
           Version: 7.12
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: palves at redhat dot com
  Target Milestone: ---

We should have a test that exercises the fix for Bug #17607 / Bug #20037.

Before those were fixed, with LC_NUMERIC set to a locale that uses comma as
decimal separator (e.g., it_IT.UTF-8), a gdb configured with Python3 support
would fail to parse floats:

 (gdb) p 1.0
 Invalid number "1.0".

The testsuite includes many tests that use floating point numbers, but I think
that none catches this because we force the locate to C in
testsuite/lib/gdb.exp.

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