check-unknown-symbols.diff

From: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Date: Thur, 10 Nov 2022 23:32:06 +0800
Subject: check-unknown-symbols
This commit is contained in:
denghao 2022-11-10 04:53:41 +03:00
parent 35d564211e
commit 52c4ef1d8e
1 changed files with 12 additions and 0 deletions

View File

@ -3515,8 +3515,20 @@ error while adding equivalent collating symbol"));
}
else if (arg != NULL)
{
void *ptr = NULL;
symstr = arg->val.str.startmb;
symlen = arg->val.str.lenmb;
if (state != 5
&& find_entry (&charmap->char_table, symstr, symlen, &ptr) != 0
&& (repertoire == NULL ||
find_entry (&repertoire->char_table, symstr, symlen, &ptr) != 0)
&& find_entry (&collate->elem_table, symstr, symlen, &ptr) != 0
&& find_entry (&collate->sym_table, symstr, symlen, &ptr) != 0)
{
if (verbose)
lr_error (ldfile, _("%s: symbol `%.*s' not known"),
"LC_COLLATE", (int) symlen, symstr);
}
}
else
{