diff options
author | 2011-03-30 20:26:27 -0600 | |
---|---|---|
committer | 2011-03-30 20:26:27 -0600 | |
commit | 6c9e89bbd2ff78fdbf0a6e7ba88d604b2da655c8 (patch) | |
tree | 5c85116deb05e83964a58ef67bf5a275656b4d8c /.gnulib | |
parent | docs: mention C89 syntax preferences (diff) | |
download | libvirt-6c9e89bbd2ff78fdbf0a6e7ba88d604b2da655c8.tar.gz libvirt-6c9e89bbd2ff78fdbf0a6e7ba88d604b2da655c8.tar.bz2 libvirt-6c9e89bbd2ff78fdbf0a6e7ba88d604b2da655c8.zip |
maint: avoid locale-sensitivity in string case comparisons
strcase{cmp/str} have the drawback of being sensitive to the global
locale; this is unacceptable in a library setting. Prefer a
hard-coded C locale alternative for all but virsh, which is user
facing and where the global locale isn't changing externally.
* .gnulib: Update to latest, for c-strcasestr change.
* bootstrap.conf (gnulib_modules): Drop strcasestr, add c-strcase
and c-strcasestr.
* cfg.mk (sc_avoid_strcase): New rule.
(exclude_file_name_regexp--sc_avoid_strcase): New exception.
* src/internal.h (STRCASEEQ, STRCASENEQ, STRCASEEQLEN)
(STRCASENEQLEN): Adjust offenders.
* src/qemu/qemu_monitor_text.c (qemuMonitorTextEjectMedia):
Likewise.
* tools/virsh.c (namesorter): Document exception.
Diffstat (limited to '.gnulib')
m--------- | .gnulib | 0 |
1 files changed, 0 insertions, 0 deletions
diff --git a/.gnulib b/.gnulib -Subproject 422ab2e0d70ed348e2fd0a82558be38e5859011 +Subproject 790645d837f8084991421107fba639b110d5833 |