diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-05-11 09:49:45 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-05-11 09:49:45 +0100 |
| commit | 84f62e6ff2e1ac37e412ddf7c06d3ceb985e2ee3 (patch) | |
| tree | f9f8ceb992f094ce3e64a110f56ae7ad2d62225c /src/highlighters.cc | |
| parent | 6b1bd84e8e2bc84101bd2370c655223ef0a13d1d (diff) | |
Use C++ locale based functions instead of the libc ones
Diffstat (limited to 'src/highlighters.cc')
| -rw-r--r-- | src/highlighters.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highlighters.cc b/src/highlighters.cc index 52db836d..bcab234e 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -884,7 +884,7 @@ void expand_unprintable(const Context& context, HighlightFlags flags, DisplayBuf { auto coord = it.coord(); Codepoint cp = utf8::read_codepoint<utf8::InvalidPolicy::Pass>(it, end); - if (cp != '\n' and not iswprint(cp)) + if (cp != '\n' and not std::isprint((wchar_t)cp, std::locale{})) { if (coord != atom_it->begin()) atom_it = ++line.split(atom_it, coord); |
