* locales/am_ET (LC_COLLATE): Define new script after copy.
authorUlrich Drepper <drepper@redhat.com>
Tue, 2 Oct 2007 02:07:50 +0000 (02:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 2 Oct 2007 02:07:50 +0000 (02:07 +0000)
locale/programs/ld-collate.c
localedata/ChangeLog
localedata/locales/am_ET

index 0cd378f..1332660 100644 (file)
@@ -2660,7 +2660,6 @@ collate_read (struct linereader *ldfile, struct localedef_t *result,
 
   if (nowtok == tok_copy)
     {
-      state = 2;
       now = lr_token (ldfile, charmap, result, NULL, verbose);
       if (now->tok != tok_string)
        {
@@ -3327,7 +3326,9 @@ error while adding equivalent collating symbol"));
                  was_ellipsis = tok_none;
                }
            }
-         else if (state != 2 && state != 3)
+         else if (state == 0 && copy_locale == NULL)
+           goto err_label;
+         else if (state != 0 && state != 2 && state != 3)
            goto err_label;
          state = 3;
 
@@ -3796,7 +3797,7 @@ error while adding equivalent collating symbol"));
          /* Next we assume `LC_COLLATE'.  */
          if (!ignore_content)
            {
-             if (state == 0)
+             if (state == 0 && copy_locale == NULL)
                /* We must either see a copy statement or have
                   ordering values.  */
                lr_error (ldfile,
index 4875125..3d287fe 100644 (file)
@@ -1,3 +1,7 @@
+2007-10-01  Ulrich Drepper  <drepper@redhat.com>
+
+       * locales/am_ET (LC_COLLATE): Define new script after copy.
+
 2007-09-30  Ulrich Drepper  <drepper@redhat.com>
 
        * locales/cs_SR: Removed.
index eb40a9e..5aa2ca1 100644 (file)
@@ -56,14 +56,14 @@ END LC_IDENTIFICATION
 
 LC_COLLATE
 %
-%  The ETHIOPIC script declaration must come first.
-%
-script <ETHIOPIC>
-%
 % Copy the template from ISO/IEC 14651
 %
 copy "iso14651_t1"
 %
+%  The ETHIOPIC script declaration must come first.
+%
+script <ETHIOPIC>
+%
 %  Correcting Unicode's linguistic ordering to the traditional.
 %
 collating-symbol <HOY>