diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-01-18 01:54:44 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-01-18 01:54:44 +0000 |
commit | f0a4b6b1fea6b5cd60d8533af771b1222c3ed8e9 (patch) | |
tree | f1eb19d324a09bd61ff095d22a18aa2c7f7ce5fa /locale/programs/repertoire.c | |
parent | 1fc82a56bcf83467050101dc06a73f9d7c124693 (diff) | |
download | glibc-f0a4b6b1fea6b5cd60d8533af771b1222c3ed8e9.tar.gz |
Update.
* locale/programs/ld-ctype.c (get_character): If tok_ucs4 found, first
try to get sequence from charmap with Uxxxxxxxx name.
(charclass_ucs4_ellipsis): Likewise.
(charclass_charcode_ellipsis): Allow byte sequence missing.
(read_writestring): Free allocated memory in case of an error.
(set_class_defaults): Don't search repertoire map for wide character
default values; we know it's UCS4.
* locale/programs/repertoire.c (repertoire_find_value): Just return an
error if no repertoire map was loaded.
(repertoire_find_symbol): Likewise.
(repertoire_find_seq): Likewise.
Diffstat (limited to 'locale/programs/repertoire.c')
-rw-r--r-- | locale/programs/repertoire.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/programs/repertoire.c b/locale/programs/repertoire.c index 91ed41e48a..8741c7d166 100644 --- a/locale/programs/repertoire.c +++ b/locale/programs/repertoire.c @@ -481,7 +481,7 @@ repertoire_find_value (const struct repertoire_t *rep, const char *name, void *result; if (rep == NULL) - error (5, 0, _("FATAL: no repertoire map specified")); + return ILLEGAL_CHAR_VALUE; if (find_entry ((hash_table *) &rep->char_table, name, len, &result) < 0) return ILLEGAL_CHAR_VALUE; @@ -496,7 +496,7 @@ repertoire_find_symbol (const struct repertoire_t *rep, uint32_t ucs) void *result; if (rep == NULL) - error (5, 0, _("FATAL: no repertoire map specified")); + return NULL; if (find_entry ((hash_table *) &rep->reverse_table, &ucs, sizeof (ucs), &result) < 0) @@ -512,7 +512,7 @@ repertoire_find_seq (const struct repertoire_t *rep, uint32_t ucs) void *result; if (rep == NULL) - error (5, 0, _("FATAL: no repertoire map specified")); + return NULL; if (find_entry ((hash_table *) &rep->seq_table, &ucs, sizeof (ucs), &result) < 0) |