projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Improved the autoconf test for xmllint
[pspp]
/
src
/
data
/
attributes.c
diff --git
a/src/data/attributes.c
b/src/data/attributes.c
index d262e2ebc3a8438ab56404928361bd19b54eeb5b..c4ae97c285928ed6e701cc6594fe0fefed5824c7 100644
(file)
--- a/
src/data/attributes.c
+++ b/
src/data/attributes.c
@@
-23,6
+23,7
@@
#include "libpspp/array.h"
#include "libpspp/hash-functions.h"
#include "libpspp/array.h"
#include "libpspp/hash-functions.h"
+#include "libpspp/i18n.h"
#include "gl/xalloc.h"
#include "gl/xalloc.h"
@@
-223,8
+224,8
@@
attrset_lookup (struct attrset *set, const char *name)
{
struct attribute *attr;
HMAP_FOR_EACH_WITH_HASH (attr, struct attribute, node,
{
struct attribute *attr;
HMAP_FOR_EACH_WITH_HASH (attr, struct attribute, node,
- hash_case_string (name, 0), &set->map)
- if (!strcasecmp (attribute_get_name (attr), name))
+
utf8_
hash_case_string (name, 0), &set->map)
+ if (!
utf8_
strcasecmp (attribute_get_name (attr), name))
break;
return attr;
}
break;
return attr;
}
@@
-237,7
+238,7
@@
attrset_add (struct attrset *set, struct attribute *attr)
{
const char *name = attribute_get_name (attr);
assert (attrset_lookup (set, name) == NULL);
{
const char *name = attribute_get_name (attr);
assert (attrset_lookup (set, name) == NULL);
- hmap_insert (&set->map, &attr->node, hash_case_string (name, 0));
+ hmap_insert (&set->map, &attr->node,
utf8_
hash_case_string (name, 0));
}
/* Deletes any attribute from SET that matches NAME
}
/* Deletes any attribute from SET that matches NAME