Skip to content

Commit

Permalink
* locale/programs/localedef.c (add_to_readlist): Error about
Browse files Browse the repository at this point in the history
	circular dependencies only if the locale in question hasn't
	been finished.
	* locale/programs/linereader.c (get_string): Pass LC_CTYPE not
	CTYPE_LOCALE to load_locale.
	* locale/programs/locfile.c (locfile_read): Don't include
	unneeded but available locales in locale_mask.

	* locale/programs/locarchive.c (enlarge_archive): If quiet, don't
	print any messages about enlarging archive.
  • Loading branch information
Roland McGrath committed Aug 20, 2002
1 parent c6c6dd4 commit 69f6a80
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2002-08-15 Jakub Jelinek <jakub@redhat.com>

* locale/programs/localedef.c (add_to_readlist): Error about
circular dependencies only if the locale in question hasn't
been finished.
* locale/programs/linereader.c (get_string): Pass LC_CTYPE not
CTYPE_LOCALE to load_locale.
* locale/programs/locfile.c (locfile_read): Don't include
unneeded but available locales in locale_mask.

* locale/programs/locarchive.c (enlarge_archive): If quiet, don't
print any messages about enlarging archive.

2002-08-20 Brian Youmans <3diff@gnu.org>

* manual/contrib.texi: Removed licenses, added acknowledgements
Expand Down
2 changes: 1 addition & 1 deletion locale/programs/linereader.c
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ non-symbolic character value should not be used"));
int old_needed = locale->needed;

locale->needed = 0;
locale = load_locale (CTYPE_LOCALE,
locale = load_locale (LC_CTYPE,
locale->name,
locale->repertoire_name,
charmap, locale);
Expand Down
4 changes: 3 additions & 1 deletion locale/programs/localedef.c
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,9 @@ add_to_readlist (int locale, const char *name, const char *repertoire_name,
}
}

if (generate && (runp->needed & (1 << locale)) != 0)
if (generate
&& (runp->needed & (1 << locale)) != 0
&& (runp->avail & (1 << locale)) == 0)
WITH_CUR_LOCALE (error (5, 0, _("\
circular dependencies between locale definitions")));

Expand Down
5 changes: 3 additions & 2 deletions locale/programs/locarchive.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head)
should be double from what is currently used. */
newhead.namehash_size = MAX (next_prime (2 * newhead.namehash_used),
newhead.namehash_size);
printf ("name: size: %u, used: %d, new: size: %u\n",
head->namehash_size, head->namehash_used, newhead.namehash_size);
if (! be_quiet)
printf ("name: size: %u, used: %d, new: size: %u\n",
head->namehash_size, head->namehash_used, newhead.namehash_size);

newhead.string_offset = (newhead.namehash_offset
+ (newhead.namehash_size
Expand Down
2 changes: 1 addition & 1 deletion locale/programs/locfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ locfile_read (struct localedef_t *result, const struct charmap_t *charmap)
{
const char *filename = result->name;
const char *repertoire_name = result->repertoire_name;
int locale_mask = result->needed ^ result->avail;
int locale_mask = result->needed & ~result->avail;
struct linereader *ldfile;
int not_here = ALL_LOCALES;

Expand Down
5 changes: 5 additions & 0 deletions localedata/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2002-08-15 Jakub Jelinek <jakub@redhat.com>

* charmaps/BIG5-HKSCS (WIDTH): Change <UE000> to <UE003> at start of
range.

2002-08-09 Roland McGrath <roland@redhat.com>

* Makefile ($(INSTALL-SUPPORTED-LOCALES)): Pass --alias-file option to
Expand Down
2 changes: 1 addition & 1 deletion localedata/charmaps/BIG5-HKSCS
Original file line number Diff line number Diff line change
Expand Up @@ -18309,5 +18309,5 @@ WIDTH
<U30FD>...<U30F6> 2
<UF7E5>...<U2EE3> 2
<U7881>...<U256F> 2
<UE000>...<U79D4> 2
<UE003>...<U79D4> 2
END WIDTH

0 comments on commit 69f6a80

Please sign in to comment.