Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
4.1.2, 4.1.3
-
None
-
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
- charmap data:
- charmap name = charmap
- n_to_w_tab_off = 0
- w_to_n_tab_off = 1024
- utf8_to_ext_tab_off = 4096
- xliteration_off = 7168
- wchar_off = 8192
- codeset_off = 8216
- charmap_off = 8224
- codecvt_ext_off = 0
CHARMAP
<U0041> \x41 # L'\x41'
END CHARMAP
- charmap stats:
- number of tables = 1
- number of characters = 1
- number of unused slots = 255 (100% waste)