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

localedef fails to create a codecvt database when <code_set_name> is not specified

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.2, 4.1.3
    • Fix Version/s: 4.2.0
    • Component/s: Utilities
    • Labels:
      None
    • Environment:

      all

      Description

      The localedef utility fails to create a codecvt database when the <code_set_name> declaration is omitted from the character set description file:

      $ cat charmap && cat ctype && ./localedef -c -w -f charmap -i ctype /tmp/dummy && LC_ALL=/tmp/dummy ./locale --charmap
      CHARMAP
      <U0041> \x41
      <U0141> \x41\x42
      <U0241> \x41\x43
      END CHARMAP
      LC_CTYPE
      END LC_CTYPE

      $ ls -l /tmp/ /tmp/* /tmp/:
      total 16
      drwxr-xr-x 2 sebor devel 182 Sep 5 18:43 dummy

      /tmp/dummy:
      total 16
      rw-rr- 1 sebor devel 1577 Sep 5 18:43 LC_CTYPE

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: