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

localedef fails to generate multibyte characters with the same prefix

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.1.2, 4.1.3
    • None
    • Utilities
    • None
    • all

    Description

      The localedef utility fails to generate multibyte characters whose initial prefix (leading byte) is the same as some single-byte character. The test case below demonstrates the problem:

      $ 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
      <escape_char> \
      <comment_char> #
      <code_set_name> charmap
      <mb_cur_max> 1

      1. charmap data:
      2. charmap name = charmap
      3. n_to_w_tab_off = 0
      4. w_to_n_tab_off = 1024
      5. utf8_to_ext_tab_off = 4096
      6. xliteration_off = 7168
      7. wchar_off = 8192
      8. codeset_off = 8216
      9. charmap_off = 8224
      10. codecvt_ext_off = 0

      CHARMAP
      <U0041> \x41 # L'\x41'
      END CHARMAP

      1. charmap stats:
      2. number of tables = 1
      3. number of characters = 1
      4. number of unused slots = 255 (100% waste)

      Attachments

        Activity

          People

            sebor Martin Sebor
            sebor Martin Sebor
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: