From aab962518206f1e1b5fa004e6f12b7e0bce1de19 Mon Sep 17 00:00:00 2001 From: Alexis Date: Fri, 10 Aug 2018 10:22:50 +0200 Subject: [PATCH] fix(network): copy all characters --- src/modules/network.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/modules/network.cpp b/src/modules/network.cpp index 75468ae4..23f4d0bb 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -67,9 +67,7 @@ void waybar::modules::Network::_parseEssid(struct nlattr **bss) if (ies_len > hdr_len && ies_len > ies[1] + hdr_len) { auto essid_begin = ies + hdr_len; auto essid_end = essid_begin + ies[1]; - // Only use printable characters of the current locale - std::copy_if(essid_begin, essid_end, std::back_inserter(_essid), - [](char c) { return isprint(static_cast(c)); }); + std::copy(essid_begin, essid_end, std::back_inserter(_essid)); } } }