fix bug 4376, 'Litehtml breaks locale'
authorPaul <paul@claws-mail.org>
Thu, 1 Oct 2020 15:52:02 +0000 (16:52 +0100)
committerPaul <paul@claws-mail.org>
Thu, 1 Oct 2020 15:52:02 +0000 (16:52 +0100)
src/plugins/litehtml_viewer/litehtml/html_tag.cpp

index f856b1e81fbe6701a4228c8ade3d04b122fbd15b..a93038b537833cf6645dadf6d22e24153c91a068 100644 (file)
@@ -81,7 +81,7 @@ void litehtml::html_tag::set_attr( const tchar_t* name, const tchar_t* val )
        if(name && val)
        {
                tstring s_val = name;
-               std::locale lc = std::locale::global(std::locale::classic());
+               std::locale lc = std::locale::global(std::locale(""));
                for(size_t i = 0; i < s_val.length(); i++)
                {
                        s_val[i] = std::tolower(s_val[i], lc);
@@ -2017,7 +2017,7 @@ bool litehtml::html_tag::is_break() const
 void litehtml::html_tag::set_tagName( const tchar_t* tag )
 {
        tstring s_val = tag;
-       std::locale lc = std::locale::global(std::locale::classic());
+       std::locale lc = std::locale::global(std::locale(""));
        for(size_t i = 0; i < s_val.length(); i++)
        {
                s_val[i] = std::tolower(s_val[i], lc);