mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-21 18:41:29 +03:00
use C locale function instead of C++ ones
This commit is contained in:
parent
2dcdc0cf4b
commit
c1b2f7ef6a
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user