summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ChangeLog6
-rw-r--r--lib/memtypes.awk4
2 files changed, 8 insertions, 2 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog
index b53d14ac..1e34474f 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,9 @@
+2005-05-23 Paul Jakma <paul@dishone.st>
+
+ * memtypes.awk: use character classes, which work correctly in
+ all LC_COLLATE environments, unlike A-Z, which doesnt work in
+ eg estonian collate order. Reported by Hasso.
+
2005-05-19 Paul Jakma <paul@dishone.st>
* thread.c: (thread_cancel_event) the number of pending events
diff --git a/lib/memtypes.awk b/lib/memtypes.awk
index 2243a4c9..923bb75a 100644
--- a/lib/memtypes.awk
+++ b/lib/memtypes.awk
@@ -9,7 +9,7 @@
#
# Each MTYPE_ within the definition must the second token on the line,
# tokens being delineated by whitespace. It may only consist of the set of
-# characters [A-Z_0-9]. Eg:
+# characters [[:upper:]_[:digit:]]. Eg:
#
# '\n { MTYPE_AWESOME_IPV8 , "Amazing new protocol, says genius" {}..boo'
#
@@ -31,7 +31,7 @@
BEGIN {
mlistregex = "memory_list_(.*)\\[\\]";
- mtyperegex = "^(MTYPE_[A-Z_0-9]+).*";
+ mtyperegex = "^(MTYPE_[[:upper:]_[:digit:]]+).*";
header = "/* Auto-generated from memtypes.c by " ARGV[0] ". */\n";
header = header "/* Do not edit! */\n";
header = header "\n#ifndef _QUAGGA_MEMTYPES_H\n";