This is the mail archive of the
glibc-cvs@sources.redhat.com
mailing list for the glibc project.
libc/intl dcigettext.c
- To: glibc-cvs at sourceware dot cygnus dot com
- Subject: libc/intl dcigettext.c
- From: drepper at sourceware dot cygnus dot com
- Date: 5 Jan 2001 06:38:46 -0000
CVSROOT: /cvs/glibc
Module name: libc
Changes by: drepper@sources.redhat.com 2001-01-04 22:38:45
Modified files:
intl : dcigettext.c
Log message:
(known_translation_t): Rename 'domain' field to
'domainname'. Remove 'plindex' field. Add 'domain' and
'translation_length' fields.
(transcmp): Don't compare 'plindex' fields.
(plural_lookup): New function.
(DCIGETTEXT): Change cache handing in the plural case. Don't call
plural_eval before the translation and its catalog file have been
found. Remove plindex from cache key. Add 'translation_length' and
'domain' to cache result.
(_nl_find_msg): Remove index argument, return length of translation
to the caller instead. Weaken comparison of string lengths, to account
for plural entries. Call iconv() on the entire result string, not
only on the portion needed so far.