talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit efe470b40a62ed73bba72d52ea9cba4374e92a78
parent a5741530b9ab16224c64c2a5a6af79b0bf671454
Author: Paul <paul@claws-mail.org>
Date:   Thu,  1 Oct 2020 16:52:02 +0100

fix bug 4376, 'Litehtml breaks locale'

Diffstat:
Msrc/plugins/litehtml_viewer/litehtml/html_tag.cpp | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/plugins/litehtml_viewer/litehtml/html_tag.cpp b/src/plugins/litehtml_viewer/litehtml/html_tag.cpp @@ -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);