You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function(s) utf8_decode(const std::string&) in include/indicators/display_width.hpp and single_include\indicators\indicators.hpp the line
std::string curLocale = setlocale(LC_ALL, "");
should save the program locale in curLocale for restoring it later. Instead, it sets the program locale to the shell locale. The line shoud be replaced by the two lines
set_progress
andmark_as_completed
change the program locale and set it to the shell one.Demo
Bug location and possible solution
In the function(s)
utf8_decode(const std::string&)
ininclude/indicators/display_width.hpp
andsingle_include\indicators\indicators.hpp
the linestd::string curLocale = setlocale(LC_ALL, "");
should save the program locale in
curLocale
for restoring it later. Instead, it sets the program locale to the shell locale. The line shoud be replaced by the two linesThe first one save the program locale and the second one set the shell locale for UTF8 decoding.
bug_locale.patch
The text was updated successfully, but these errors were encountered: