Error message if remote Git output contains non-ASCII chars
What steps will reproduce the problem?
- Clone any repo from remote git with cirylic locale
What is the expected output? What do you see instead?
What version of TortoiseGit and Git are you using? On what operating system?
2.4.0.2 - 2.4.4.0
Please provide any additional information below.
problem in CProgressDlg::ParserCmdOutput method.
//find position for ASCI string
int s1 = oneline.ReverseFind(L':');
int s2 = oneline.Find(L'%');
//use unicode string later
if (s1 > 0 && s2 > 0)
{
if(CurrentWork)
CurrentWork->SetWindowTextW(str.Left(s1));
int pos = ParsePercentage(str, s2);
In cirylic locale length and position ASCI and UNICODE string not equal.
Edited by Sven Strickroth