use C locale function instead of C++ ones

This commit is contained in:
Maxime Coste 2013-07-02 14:02:52 +01:00
parent 2dcdc0cf4b
commit c1b2f7ef6a
2 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ void expand_unprintable(const Window& window, DisplayBuffer& display_buffer)
end = buffer.iterator_at(atom_it->content.end()); it != end; ++it)
{
Codepoint cp = *it;
if (cp != '\n' and not std::isprint((wchar_t)cp, std::locale()))
if (cp != '\n' and not isprint((int)cp))
{
std::ostringstream oss;
oss << "U+" << std::hex << cp;

View File

@ -171,7 +171,7 @@ int main(int argc, char* argv[])
{
try
{
std::locale::global(std::locale(""));
setlocale(LC_ALL, "");
signal(SIGSEGV, signal_handler);
signal(SIGFPE, signal_handler);