diff options
author | Guillem Jover <guillem@debian.org> | 2014-12-28 20:14:48 +0100 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2015-01-28 20:50:29 +0100 |
commit | 45dcca46d83ea52d683afa4b486d9321148b46cf (patch) | |
tree | 538fde63d7ca9510562c15c4f52802da717947b0 /dselect/baselist.cc | |
parent | 8183122e10463954453d756f4a037f9ea3f1c5c5 (diff) | |
download | dpkg-45dcca46d83ea52d683afa4b486d9321148b46cf.tar.gz |
Switch code to use the new C locale character type functions
Diffstat (limited to 'dselect/baselist.cc')
-rw-r--r-- | dselect/baselist.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dselect/baselist.cc b/dselect/baselist.cc index acd149249..8e2f44f65 100644 --- a/dselect/baselist.cc +++ b/dselect/baselist.cc @@ -27,13 +27,13 @@ #include <assert.h> #include <errno.h> -#include <ctype.h> #include <string.h> #include <termios.h> #include <unistd.h> #include <stdio.h> #include <dpkg/i18n.h> +#include <dpkg/c-ctype.h> #include <dpkg/dpkg.h> #include <dpkg/dpkg-db.h> @@ -367,7 +367,8 @@ void baselist::wordwrapinfo(int offset, const char *m) { int offleft=offset; while (*m == ' ' && offleft>0) { m++; offleft--; } const char *p= strchr(m,'\n'); int l= p ? (int)(p-m) : strlen(m); - while (l && isspace(m[l-1])) l--; + while (l && c_isspace(m[l - 1])) + l--; if (!l || (*m == '.' && l == 1)) { if (wrapping) waddch(infopad,'\n'); waddch(infopad, '\n'); |