]> sourceware.org Git - glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sun, 21 Nov 1999 06:02:35 +0000 (06:02 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 21 Nov 1999 06:02:35 +0000 (06:02 +0000)
* locale/programs/ld-time.c (time_startup): Test for lr being
nonzero, not time.

* locale/programs/ld-numeric.c (numeric_finish): Don't crash if
decimal_point is not defined.

ChangeLog
locale/programs/ld-numeric.c
locale/programs/ld-time.c
localedata/ChangeLog
localedata/tests/test1.def

index 48a033e52e58fd13588588b4873242fe2524e81c..72f2a16cea12a34d240a835ed93072edf5e8c3c9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 1999-11-20  Ulrich Drepper  <drepper@cygnus.com>
 
+       * locale/programs/ld-time.c (time_startup): Test for lr being
+       nonzero, not time.
+
+       * locale/programs/ld-numeric.c (numeric_finish): Don't crash if
+       decimal_point is not defined.
+
        * wctype/wctrans.c (wctrans): Use correct base index to access
        extra mapping tables.
 
index 697ad35bb9eeec2ff8e5976e95b83489937f2254..3bf198aba51c421d1b8fd2114d3a5a9eaa3ea8a5 100644 (file)
@@ -114,7 +114,13 @@ numeric_finish (struct localedef_t *locale, struct charmap_t *charmap)
   /* The decimal point must not be empty.  This is not said explicitly
      in POSIX but ANSI C (ISO/IEC 9899) says in 4.4.2.1 it has to be
      != "".  */
-  if (numeric->decimal_point[0] == '\0' && ! be_quiet && ! nothing)
+  if (numeric->decimal_point == NULL)
+    {
+      error (0, 0, _("%s: field `%s' not defined"),
+            "LC_NUMERIC", "decimal_point");
+      numeric->decimal_point = ".";
+    }
+  else if (numeric->decimal_point[0] == '\0' && ! be_quiet && ! nothing)
     {
       error (0, 0, _("\
 %s: value for field `%s' must not be the empty string"),
index 9ec58f6487e40cf967233c4347f914362b84083f..b2c06cca7ce3d278781220f03c488822070079b2 100644 (file)
@@ -115,7 +115,7 @@ time_startup (struct linereader *lr, struct localedef_t *locale,
     locale->categories[LC_TIME].time =
       (struct locale_time_t *) xcalloc (1, sizeof (struct locale_time_t));
 
-  if (time != NULL)
+  if (lr != NULL)
     {
       lr->translate_strings = 1;
       lr->return_widestr = 1;
index 811d9d19f4ed9af854be2234f6825d6ba5c60676..ec2a562a16f8b9c87544446ccd3f013a1ee86135 100644 (file)
@@ -1,3 +1,7 @@
+1999-11-20  Ulrich Drepper  <drepper@cygnus.com>
+
+       * tests/test1.def: Correct ellipsis syntax.
+
 1999-11-17  Ulrich Drepper  <drepper@cygnus.com>
 
        * charmaps/ISO-8859-1: Don't define values for non-printable
index 56dea5c4bb88a291aefe4ed47b4b8bac4fbe94e9..53a7bbcd9d4b7fdc0fd606330ce8c6e9c7e84961 100644 (file)
@@ -4,6 +4,6 @@ upper   <A>
 lower   <a>
 space  <SP>
 blank  <SP>
-alpha  <A>;<a>;<b1>;...;<b3>
+alpha  <A>;<a>;<b1>..<b3>
 
 END LC_CTYPE
This page took 0.060392 seconds and 5 git commands to generate.