Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-372

locale test failure for br_FR.ISO-8859-1 and hu_HU.ISO-8859-2

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.3.0
    • Component/s: Locales
    • Labels:
      None
    • Environment:

      gcc 3.4.6, Linux x86_64
      msvc, Windows

    • Severity:
      Incorrect Behavior

      Description

      Running the test scripts for br_FR.ISO-8859-1 and hu_HU.ISO-8859-2 shows that stages 2 and 3 differ (the diff is below the script output):

      $ ./br_FR.ISO-8859-1.sh -d -n
      RWSTD_SRC_ROOT=/amd/devco/sebor/stdcxx/etc/nls
      export RWSTD_SRC_ROOT
      mkdir -p /tmp/locale.11871/stage.1/charmaps
      ./localedef -w -c -f /amd/devco/sebor/stdcxx/etc/nls/charmaps/ISO-8859-1 -i /amd/devco/sebor/stdcxx/etc/nls/src/br_FR /tmp/locale.11871/stage.1/br_FR.ISO-8859-1 >/dev/tty 2>&1
      LC_ALL=/tmp/locale.11871/stage.1/br_FR.ISO-8859-1 ./locale --charmap -l >/tmp/locale.11871/stage.1/charmaps/ISO-8859-1 2>/dev/tty
      LC_ALL=/tmp/locale.11871/stage.1/br_FR.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/locale.11871/stage.1/br_FR.src 2>/dev/tty
      mkdir -p /tmp/locale.11871/stage.2/charmaps
      ./localedef -w -c -f /tmp/locale.11871/stage.1/charmaps/ISO-8859-1 -i /tmp/locale.11871/stage.1/br_FR.src /tmp/locale.11871/stage.2/br_FR.ISO-8859-1 >/dev/tty 2>&1
      RWSTD_SRC_ROOT=/tmp/locale.11871/stage.1
      export RWSTD_SRC_ROOT
      LC_ALL=/tmp/locale.11871/stage.2/br_FR.ISO-8859-1 ./locale --charmap -l >/tmp/locale.11871/stage.2/charmaps/ISO-8859-1 2>/dev/tty
      LC_ALL=/tmp/locale.11871/stage.2/br_FR.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/locale.11871/stage.2/br_FR.src 2>/dev/tty
      mkdir -p /tmp/locale.11871/stage.3/charmaps
      ./localedef -w -c -f /tmp/locale.11871/stage.2/charmaps/ISO-8859-1 -i /tmp/locale.11871/stage.2/br_FR.src /tmp/locale.11871/stage.3/br_FR.ISO-8859-1 >/dev/tty 2>&1
      RWSTD_SRC_ROOT=/tmp/locale.11871/stage.2
      export RWSTD_SRC_ROOT
      LC_ALL=/tmp/locale.11871/stage.3/br_FR.ISO-8859-1 ./locale --charmap -l >/tmp/locale.11871/stage.3/charmaps/ISO-8859-1 2>/dev/tty
      LC_ALL=/tmp/locale.11871/stage.3/br_FR.ISO-8859-1 ./locale -ck -h -l LC_ALL >/tmp/locale.11871/stage.3/br_FR.src 2>/dev/tty
      diff /tmp/locale.11871/stage.1/charmaps/ISO-8859-1  /tmp/locale.11871/stage.2/charmaps/ISO-8859-1 >/dev/null
      diff /tmp/locale.11871/stage.2/charmaps/ISO-8859-1  /tmp/locale.11871/stage.3/charmaps/ISO-8859-1 >/dev/null
      diff /tmp/locale.11871/stage.2/br_FR.src  /tmp/locale.11871/stage.3/br_FR.src >/dev/null
      ## AssertionFailed: /tmp/locale.11871/stage.2/br_FR.src  and /tmp/locale.11871/stage.3/br_FR.src differ.
      # +-----------------------+--------+--------+--------+
      # | DIAGNOSTIC            | ACTIVE |  TOTAL |INACTIVE|
      # +-----------------------+--------+--------+--------+
      # | (S7) ASSERTION        |      1 |     16 |    93% |
      # +-----------------------+--------+--------+--------+
      
      ## Assertions = 16
      ## FailedAssertions = 1
      
      
      $ diff /tmp/locale.11871/stage.2/br_FR.src /tmp/locale.11871/stage.3/br_FR.src
      5,6c5,6
      < #   codeset_off: 8640
      < #   charmap_off: 8651
      ---
      > #   codeset_off: 8520
      > #   charmap_off: 8531
      8c8
      < #   num_elms: 264
      ---
      > #   num_elms: 258
      12,14c12
      < #   largest_ce: 2
      < collating-element <RW_CE_0> from "<U0048>"
      < collating-element <RW_CE_1> from "<U0068>"
      ---
      > #   largest_ce: 1
      17,18d14
      < <RW_CE_0>  \x38;\x23;\x0c;IGNORE;
      < <RW_CE_1>  \x38;\x23;\x0d;IGNORE;
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sebor Martin Sebor
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 8h
                8h
                Logged:
                Time Spent - Not Specified
                Not Specified