Core: ToAsciiRest_ now returns 32 instead of 0 if no ascii for character

git-svn-id: svn://ultimatepp.org/upp/trunk@12690 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-01-21 09:21:10 +00:00
parent 16b8107555
commit c6456e52b4

View file

@ -214,7 +214,7 @@ char ToAsciiRest_(dword c)
UnicodeInfo& f = Single<UnicodeInfo>();
int q = f.composed.Find(c);
if(q < 0)
return 0;
return ' ';
int ch = *(const dword *)~f.decomposed[q];
return ch < 128 ? ch : ' ';
}