diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-06-07 19:13:50 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-06-07 19:13:50 +0000 |
commit | 45c952394b49a40b456ed049b3dc305ec07de576 (patch) | |
tree | 45ad17686aa9faba183f1bb3a2237c7e6b5d40af | |
parent | 2a63199095b7f9f4881787876d29a17c971f87f0 (diff) | |
download | glibc-45c952394b49a40b456ed049b3dc305ec07de576.zip glibc-45c952394b49a40b456ed049b3dc305ec07de576.tar.gz glibc-45c952394b49a40b456ed049b3dc305ec07de576.tar.bz2 |
Update.
* locale/programs/ld-ctype.c: Handle SP and space consistently.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | locale/programs/ld-ctype.c | 10 |
2 files changed, 12 insertions, 0 deletions
@@ -1,5 +1,7 @@ 2000-06-07 Ulrich Drepper <drepper@redhat.com> + * locale/programs/ld-ctype.c: Handle SP and space consistently. + * locale/programs/charmap.c: Allow string arguments for code_set_name and repertoiremap. diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index 8bef3ee..be735e3 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -533,6 +533,10 @@ character '%s' in class `%s' must not be in class `%s'"), ELEM (ctype, class_collection, , space_value) |= BITw (tok_print); space_seq = charmap_find_value (charmap, "SP", 2); + if (space_req == NULL) + space_seq = charmap_find_value (charmap, "space", 5); + if (space_seq == NULL) + space_seq = charmap_find_value (charmap, "U00000020", 5); if (space_seq == NULL || space_seq->nbytes != 1) { if (!be_quiet) @@ -2698,6 +2702,8 @@ set_class_defaults (struct locale_ctype_t *ctype, struct charmap_t *charmap, seq = charmap_find_value (charmap, "space", 5); if (seq == NULL) + seq = charmap_find_value (charmap, "SP", 2); + if (seq == NULL) seq = charmap_find_value (charmap, "U00000020", 9); if (seq == NULL) { @@ -2840,6 +2846,8 @@ character `%s' not defined while needed as default value"), seq = charmap_find_value (charmap, "space", 5); if (seq == NULL) + seq = charmap_find_value (charmap, "SP", 2); + if (seq == NULL) seq = charmap_find_value (charmap, "U00000020", 9); if (seq == NULL) { @@ -2920,6 +2928,8 @@ character `%s' not defined while needed as default value"), seq = charmap_find_value (charmap, "space", 5); if (seq == NULL) + seq = charmap_find_value (charmap, "SP", 2); + if (seq == NULL) seq = charmap_find_value (charmap, "U00000020", 9); if (seq == NULL) { |