diff --git a/src/components/config.cpp b/src/components/config.cpp index b2d34aaa..83158954 100644 --- a/src/components/config.cpp +++ b/src/components/config.cpp @@ -86,6 +86,8 @@ void config::parse_file() { while (std::getline(in, line)) { lineno++; + line = string_util::replace_all(line, "\t", ""); + // Ignore empty lines and comments if (line.empty() || line[0] == ';' || line[0] == '#') { continue; diff --git a/src/x11/fonts.cpp b/src/x11/fonts.cpp index 57018534..b079d856 100644 --- a/src/x11/fonts.cpp +++ b/src/x11/fonts.cpp @@ -260,7 +260,7 @@ bool font_manager::open_xcb_font(fonttype_pointer& fontptr, string fontname) { bool font_manager::has_glyph(fonttype_pointer& font, uint16_t chr) { if (font->xft != nullptr) { - return static_cast(XftCharExists(m_display.get(), font->xft, (FcChar32)chr)); + return static_cast(XftCharExists(m_display.get(), font->xft, static_cast(chr))); } else { if (chr < font->char_min || chr > font->char_max) { return false;