[Commits] [SCM] claws branch, gtk3, updated. 3.16.0-1013-gefe470b40

paul at claws-mail.org paul at claws-mail.org
Thu Oct 1 17:53:10 CEST 2020


The branch, gtk3 has been updated
       via  efe470b40a62ed73bba72d52ea9cba4374e92a78 (commit)
      from  a5741530b9ab16224c64c2a5a6af79b0bf671454 (commit)

Summary of changes:
 src/plugins/litehtml_viewer/litehtml/html_tag.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit efe470b40a62ed73bba72d52ea9cba4374e92a78
Author: Paul <paul at claws-mail.org>
Date:   Thu Oct 1 16:52:02 2020 +0100

    fix bug 4376, 'Litehtml breaks locale'

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

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list