Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update.
2002-01-18  Isamu Hasegawa  <isamu@yamato.ibm.com>

	* locale/program/ld-collate.c (collate_finish): Assign a wide
	char collation sequence value to multi character collating
	elements, and avoid over writing by non-character elements.
  • Loading branch information
Ulrich Drepper committed Feb 1, 2002
1 parent 635f35f commit 9c1084a
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2002-01-18 Isamu Hasegawa <isamu@yamato.ibm.com>

* locale/program/ld-collate.c (collate_finish): Assign a wide
char collation sequence value to multi character collating
elements, and avoid over writing by non-character elements.

2002-02-01 Ulrich Drepper <drepper@redhat.com>

* elf/Makefile (distribute): Add dl-procinfo.c.
Expand Down
10 changes: 7 additions & 3 deletions locale/programs/ld-collate.c
@@ -1,4 +1,4 @@
/* Copyright (C) 1995-1999, 2000, 2001 Free Software Foundation, Inc.
/* Copyright (C) 1995-1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@gnu.org>, 1995.
Expand Down Expand Up @@ -1672,6 +1672,9 @@ collate_finish (struct localedef_t *locale, const struct charmap_t *charmap)

runp->wcseqorder = wcseqact++;
}
else if (runp->mbs != NULL && runp->weights != NULL)
/* This is for collation elements. */
runp->wcseqorder = wcseqact++;

/* Up to the next entry. */
runp = runp->next;
Expand Down Expand Up @@ -1706,8 +1709,9 @@ collate_finish (struct localedef_t *locale, const struct charmap_t *charmap)
struct element_t *lastp;

/* Insert the collation sequence value. */
collseq_table_add (&collate->wcseqorder, runp->wcs[0],
runp->wcseqorder);
if (runp->is_character)
collseq_table_add (&collate->wcseqorder, runp->wcs[0],
runp->wcseqorder);

/* Find the point where to insert in the list. */
e = wchead_table_get (&collate->wcheads, runp->wcs[0]);
Expand Down
4 changes: 4 additions & 0 deletions localedata/ChangeLog
@@ -1,3 +1,7 @@
2002-02-01 Ulrich Drepper <drepper@redhat.com>

* da_DK.in: Add a few more character sequences, no real words.

2002-01-17 Ulrich Drepper <drepper@redhat.com>

* charmaps/MACINTOSH: Update to Apple's latest definition.
Expand Down
7 changes: 7 additions & 0 deletions localedata/da_DK.in
@@ -1,3 +1,4 @@
A
A/S
ANDRE
ANDR�
Expand Down Expand Up @@ -29,6 +30,7 @@ R
REE, B
R�E, L
REE, V
SA
SCHYTT, B
SCHYTT, H
SCH�TT, H
Expand All @@ -41,6 +43,9 @@ STORE VILDMOSE
STOREK�R
STORM PETERSEN
STORMLY
S�
SAA
Saa
THORVALD
THORVARDUR
�ORVAR�UR
Expand All @@ -52,3 +57,5 @@ VESTERG
�BLE
�BERG
�BERG
AA
aa

0 comments on commit 9c1084a

Please sign in to comment.